2017-07-02 11:28:03 +02:00
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:context="info.nightscout.androidaps.plugins.Overview.OverviewFragment">
|
|
|
|
|
|
|
|
<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">
|
|
|
|
|
|
|
|
<android.support.v7.widget.RecyclerView
|
|
|
|
android:id="@+id/overview_notifications"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
</android.support.v7.widget.RecyclerView>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_looplayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingTop="2dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_apsmode"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical|center_horizontal"
|
|
|
|
android:text="Open Loop"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_activeprofile"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical|center_horizontal"
|
|
|
|
android:text="Profile"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_temptarget"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical|center_horizontal"
|
|
|
|
android:text="TempTarget"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="@color/mdtp_white" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_pumpstatuslayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingTop="2dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_pumpstatus"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:gravity="center_vertical|center_horizontal"
|
|
|
|
android:text="@string/initializing"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_bg"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top|left"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:text="00.0"
|
|
|
|
android:textSize="70dp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_arrow"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top|left"
|
|
|
|
android:layout_marginTop="-15dp"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingLeft="-5dp"
|
|
|
|
android:paddingRight="-5dp"
|
|
|
|
android:text="→"
|
|
|
|
android:textSize="70dp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="top"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_timeago"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_delta"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-07-03 00:02:54 +02:00
|
|
|
<LinearLayout
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-07-03 00:02:54 +02:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_time"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="fill_vertical"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:maxWidth="150dp"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:text="8:00 PM"
|
|
|
|
android:textSize="30sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/overview_lockscreen"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/lock_screen_short"
|
|
|
|
android:textAlignment="center" />
|
|
|
|
</LinearLayout>
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/basal_short"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_basebasal"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="0.50U/h @17:35 1/30min - 0.40U/h"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginBottom="2dp"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/virtualpump_extendedbolus_label_short"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_extendedbolus"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="0.50U/h @17:35 1/30min"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginBottom="2dp"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/iob"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_iob"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=""
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginBottom="2dp"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/cob"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_cob"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="23 g"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginBottom="2dp"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<include
|
|
|
|
layout="@layout/careportal_stats_fragment_short"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingRight="2dp"
|
|
|
|
android:text="@string/pump"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_pump"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=""
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginBottom="2dp"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/openaps_short"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_openaps"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="2dp"
|
|
|
|
android:text=""
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginBottom="2dp"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/uploader_short"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_uploader"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=""
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginBottom="2dp"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingTop="5dp">
|
|
|
|
|
2018-01-19 20:11:51 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/overview_showprediction"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
app:buttonTint="@color/prediction" />
|
|
|
|
|
2017-07-02 11:28:03 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_showprediction_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-09 21:47:03 +02:00
|
|
|
android:layout_gravity="center"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:text="@string/predictionshortlabel"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="@color/prediction"
|
2017-10-09 21:47:03 +02:00
|
|
|
android:textStyle="bold"/>
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
<CheckBox
|
2018-01-19 20:11:51 +01:00
|
|
|
android:id="@+id/overview_showbasals"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-09 21:47:03 +02:00
|
|
|
android:layout_gravity="center"
|
2018-01-19 20:11:51 +01:00
|
|
|
app:buttonTint="@color/basal" />
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
<TextView
|
2018-01-24 16:53:40 +01:00
|
|
|
android:id="@+id/overview_showbasals_label"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-09 21:47:03 +02:00
|
|
|
android:layout_gravity="center"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:text="@string/basalshortlabel"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="@color/basal"
|
2017-10-09 21:47:03 +02:00
|
|
|
android:textStyle="bold" />
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
<CheckBox
|
2018-01-19 20:11:51 +01:00
|
|
|
android:id="@+id/overview_showiob"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-09 21:47:03 +02:00
|
|
|
android:layout_gravity="center"
|
2018-01-19 20:11:51 +01:00
|
|
|
app:buttonTint="@color/iob" />
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
<TextView
|
2018-01-24 16:53:40 +01:00
|
|
|
android:id="@+id/overview_showiob_label"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-09 21:47:03 +02:00
|
|
|
android:layout_gravity="center"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:text="@string/iob"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="@color/iob"
|
2017-10-09 21:47:03 +02:00
|
|
|
android:textStyle="bold" />
|
2017-07-02 11:28:03 +02:00
|
|
|
|
2018-01-19 20:11:51 +01:00
|
|
|
|
2017-07-02 11:28:03 +02:00
|
|
|
<CheckBox
|
2018-01-19 20:11:51 +01:00
|
|
|
android:id="@+id/overview_showcob"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-09 21:47:03 +02:00
|
|
|
android:layout_gravity="center"
|
2018-01-19 20:11:51 +01:00
|
|
|
app:buttonTint="@color/cob" />
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
<TextView
|
2018-01-24 16:53:40 +01:00
|
|
|
android:id="@+id/overview_showcob_label"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-09 21:47:03 +02:00
|
|
|
android:layout_gravity="center"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:text="@string/cob"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="@color/cob"
|
2017-10-09 21:47:03 +02:00
|
|
|
android:textStyle="bold" />
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
<CheckBox
|
2018-01-19 20:11:51 +01:00
|
|
|
android:id="@+id/overview_showdeviations"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-09 21:47:03 +02:00
|
|
|
android:layout_gravity="center"
|
2018-01-19 20:11:51 +01:00
|
|
|
app:buttonTint="@color/deviations" />
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
<TextView
|
2018-01-24 16:53:40 +01:00
|
|
|
android:id="@+id/overview_showdeviations_label"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-09 21:47:03 +02:00
|
|
|
android:layout_gravity="center"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:text="@string/dev"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="@color/deviations"
|
2017-10-09 21:47:03 +02:00
|
|
|
android:textStyle="bold" />
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
<CheckBox
|
2018-01-19 20:11:51 +01:00
|
|
|
android:id="@+id/overview_showratios"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-01-19 20:11:51 +01:00
|
|
|
android:layout_gravity="center" />
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
<TextView
|
2018-01-24 16:53:40 +01:00
|
|
|
android:id="@+id/overview_showratios_label"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-09 21:47:03 +02:00
|
|
|
android:layout_gravity="center"
|
2017-07-02 11:28:03 +02:00
|
|
|
android:text="@string/ratio_short"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2017-10-09 21:47:03 +02:00
|
|
|
android:textStyle="bold" />
|
2017-07-02 11:28:03 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<com.jjoe64.graphview.GraphView
|
|
|
|
android:id="@+id/overview_bggraph"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="160dip" />
|
|
|
|
|
|
|
|
<com.jjoe64.graphview.GraphView
|
|
|
|
android:id="@+id/overview_iobgraph"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="100dp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-07-02 11:28:03 +02:00
|
|
|
android:id="@+id/overview_treatmentbutton"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginRight="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:drawableTop="@drawable/icon_bolus"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/overview_bolus_label"
|
|
|
|
android:textColor="@color/colorTreatmentButton"
|
|
|
|
android:textSize="10sp" />
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-07-02 11:28:03 +02:00
|
|
|
android:id="@+id/overview_wizardbutton"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginRight="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:drawableTop="@drawable/icon_calculator"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/overview_calculator_label"
|
|
|
|
android:textColor="@color/colorCalculatorButton"
|
|
|
|
android:textSize="10sp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-07-02 11:28:03 +02:00
|
|
|
android:id="@+id/overview_quickwizardbutton"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginRight="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:drawableTop="@drawable/icon_quickwizard"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="Quick wizard"
|
|
|
|
android:textColor="@color/colorQuickWizardButton"
|
|
|
|
android:textSize="10sp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
</FrameLayout>
|