2016-06-05 01:40:35 +02:00
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2017-04-21 12:15:08 +02:00
|
|
|
tools:context=".plugins.ProfileNS.NSProfileFragment">
|
2016-06-05 01:40:35 +02:00
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/profileview_noprofile"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-04 00:46:44 +02:00
|
|
|
android:gravity="center_horizontal"
|
2017-01-19 19:21:25 +01:00
|
|
|
android:text="@string/noprofileset"
|
2016-06-05 01:40:35 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
|
|
android:textColor="@android:color/holo_red_light"
|
|
|
|
android:textStyle="bold"
|
2017-06-04 00:46:44 +02:00
|
|
|
android:visibility="gone" />
|
2016-06-05 01:40:35 +02:00
|
|
|
|
2017-05-09 19:06:59 +02:00
|
|
|
<LinearLayout
|
2016-06-05 01:40:35 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-09 19:06:59 +02:00
|
|
|
android:orientation="horizontal">
|
2016-06-05 01:40:35 +02:00
|
|
|
|
2017-05-09 19:06:59 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-12 23:31:50 +02:00
|
|
|
android:layout_weight="2"
|
2017-05-09 19:06:59 +02:00
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="5dp"
|
2017-08-17 17:03:08 +02:00
|
|
|
android:text="@string/careportal_newnstreatment_profile_label"
|
2017-05-09 19:06:59 +02:00
|
|
|
android:textSize="14sp" />
|
2016-06-05 01:40:35 +02:00
|
|
|
|
2017-05-09 19:06:59 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:paddingEnd="2dp"
|
|
|
|
android:paddingStart="2dp"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="14sp" />
|
2016-06-09 09:21:33 +02:00
|
|
|
|
2017-05-09 19:06:59 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/profileview_activeprofile"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start"
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp" />
|
2016-06-09 09:21:33 +02:00
|
|
|
|
2017-05-09 19:06:59 +02:00
|
|
|
</LinearLayout>
|
2016-06-05 01:40:35 +02:00
|
|
|
|
2017-08-17 17:03:08 +02:00
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:background="@color/listdelimiter"
|
|
|
|
android:id="@+id/profileview_datedelimiter"
|
|
|
|
android:visibility="gone"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:id="@+id/profileview_datelayout"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="2"
|
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
android:text="@string/date"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:paddingEnd="2dp"
|
|
|
|
android:paddingStart="2dp"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/profileview_date"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start"
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-05-09 19:06:59 +02:00
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
2016-06-05 01:40:35 +02:00
|
|
|
|
2017-05-09 19:06:59 +02:00
|
|
|
<LinearLayout
|
2016-06-05 01:40:35 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-09 19:06:59 +02:00
|
|
|
android:orientation="horizontal">
|
2016-06-05 01:40:35 +02:00
|
|
|
|
2017-05-09 19:06:59 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-12 23:31:50 +02:00
|
|
|
android:layout_weight="2"
|
2017-05-09 19:06:59 +02:00
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
android:text="@string/nsprofileview_units_label"
|
|
|
|
android:textSize="14sp" />
|
2016-06-05 01:40:35 +02:00
|
|
|
|
2017-05-09 19:06:59 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:paddingEnd="2dp"
|
|
|
|
android:paddingStart="2dp"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="14sp" />
|
2016-06-05 01:40:35 +02:00
|
|
|
|
2017-05-09 19:06:59 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/profileview_units"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start"
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
|
|
|
<LinearLayout
|
2016-06-05 01:40:35 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-09 19:06:59 +02:00
|
|
|
android:orientation="horizontal">
|
2016-06-05 01:40:35 +02:00
|
|
|
|
2017-05-09 19:06:59 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-12 23:31:50 +02:00
|
|
|
android:layout_weight="2"
|
2017-05-09 19:06:59 +02:00
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
android:text="@string/nsprofileview_dia_label"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:paddingEnd="2dp"
|
|
|
|
android:paddingStart="2dp"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/profileview_dia"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start"
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
|
|
|
<LinearLayout
|
2016-06-05 01:40:35 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-09 19:06:59 +02:00
|
|
|
android:orientation="horizontal">
|
2016-06-05 01:40:35 +02:00
|
|
|
|
2017-05-09 19:06:59 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-12 23:31:50 +02:00
|
|
|
android:layout_weight="2"
|
2017-05-09 19:06:59 +02:00
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
android:text="@string/nsprofileview_ic_label"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:paddingEnd="2dp"
|
|
|
|
android:paddingStart="2dp"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/profileview_ic"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start"
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
|
|
|
<LinearLayout
|
2016-06-05 01:40:35 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-09 19:06:59 +02:00
|
|
|
android:orientation="horizontal">
|
2016-06-05 01:40:35 +02:00
|
|
|
|
2017-05-09 19:06:59 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-12 23:31:50 +02:00
|
|
|
android:layout_weight="2"
|
2017-05-09 19:06:59 +02:00
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
android:text="@string/nsprofileview_isf_label"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:paddingEnd="2dp"
|
|
|
|
android:paddingStart="2dp"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/profileview_isf"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start"
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
|
|
|
<LinearLayout
|
2016-06-05 01:40:35 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-09 19:06:59 +02:00
|
|
|
android:orientation="horizontal">
|
2016-06-05 01:40:35 +02:00
|
|
|
|
2017-05-09 19:06:59 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-12 23:31:50 +02:00
|
|
|
android:layout_weight="2"
|
2017-05-09 19:06:59 +02:00
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
android:text="@string/nsprofileview_basal_label"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:paddingEnd="2dp"
|
|
|
|
android:paddingStart="2dp"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/profileview_basal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start"
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2018-03-15 14:05:13 +01:00
|
|
|
<info.nightscout.androidaps.plugins.Treatments.fragments.ProfileGraph
|
|
|
|
android:id="@+id/basal_graph"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_margin="20dp"
|
|
|
|
android:layout_height="100dip" />
|
2017-05-09 19:06:59 +02:00
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
|
|
|
<LinearLayout
|
2016-06-05 01:40:35 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-09 19:06:59 +02:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-12 23:31:50 +02:00
|
|
|
android:layout_weight="2"
|
2017-05-09 19:06:59 +02:00
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
android:text="@string/nsprofileview_target_label"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:paddingEnd="2dp"
|
|
|
|
android:paddingStart="2dp"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/profileview_target"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start"
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
2016-07-11 14:04:57 +02:00
|
|
|
|
|
|
|
<Button
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/reloadprofile"
|
|
|
|
android:id="@+id/profileview_reload"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:visibility="gone" />
|
2016-06-05 01:40:35 +02:00
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
</FrameLayout>
|