2017-05-24 18:24:23 +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"
|
|
|
|
tools:context=".plugins.PumpCombo.ComboFragment">
|
|
|
|
|
2017-10-19 19:08:48 +02:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
2017-05-24 18:24:23 +02:00
|
|
|
<ScrollView
|
2017-07-16 03:28:11 +02:00
|
|
|
android:id="@+id/scrollView"
|
2017-05-24 18:24:23 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2017-07-16 03:28:11 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-05-24 18:24:23 +02:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
2017-07-16 03:28:11 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
2017-05-24 18:24:23 +02:00
|
|
|
|
2017-07-16 03:28:11 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-19 19:08:48 +02:00
|
|
|
android:layout_weight="1.5"
|
2017-07-16 03:28:11 +02:00
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="5dp"
|
2017-10-27 11:52:35 +02:00
|
|
|
android:text="@string/combo_pump_state_label"
|
2017-07-16 03:28:11 +02:00
|
|
|
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
|
2017-10-27 00:03:01 +02:00
|
|
|
android:id="@+id/combo_state"
|
2017-07-16 03:28:11 +02:00
|
|
|
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
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-19 19:08:48 +02:00
|
|
|
android:layout_weight="1.5"
|
2017-07-16 03:28:11 +02:00
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="5dp"
|
2017-11-22 11:27:49 +01:00
|
|
|
android:text="@string/combo_pump_activity_label"
|
2017-07-16 03:28:11 +02:00
|
|
|
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" />
|
|
|
|
|
2017-11-10 02:23:21 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/combo_activity"
|
2017-07-16 03:28:11 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-19 23:01:27 +02:00
|
|
|
android:layout_weight="1"
|
2017-10-19 19:08:48 +02:00
|
|
|
android:gravity="start"
|
2017-10-19 23:01:27 +02:00
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:textColor="@android:color/white"
|
2017-11-10 02:23:21 +01:00
|
|
|
android:textSize="14sp" />
|
2017-07-16 03:28:11 +02:00
|
|
|
|
|
|
|
</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" />
|
|
|
|
|
2017-11-10 02:23:21 +01:00
|
|
|
|
2017-07-16 03:28:11 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-19 19:08:48 +02:00
|
|
|
android:layout_weight="1.5"
|
2017-07-16 03:28:11 +02:00
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="5dp"
|
2017-11-10 02:23:21 +01:00
|
|
|
android:text="@string/pump_battery_label"
|
2017-07-16 03:28:11 +02:00
|
|
|
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" />
|
|
|
|
|
2017-11-10 02:23:21 +01:00
|
|
|
<com.joanzapata.iconify.widget.IconTextView
|
|
|
|
android:id="@+id/combo_pumpstate_battery"
|
2017-07-16 03:28:11 +02:00
|
|
|
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"
|
2017-11-10 02:23:21 +01:00
|
|
|
android:text=""
|
2017-11-11 16:13:06 +01:00
|
|
|
android:textSize="14sp" />
|
2017-07-16 03:28:11 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-10-27 00:03:01 +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
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1.5"
|
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="5dp"
|
2017-11-10 02:23:21 +01:00
|
|
|
android:text="@string/pump_reservoir_label"
|
2017-10-27 00:03:01 +02:00
|
|
|
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
|
2017-11-10 02:23:21 +01:00
|
|
|
android:id="@+id/combo_insulinstate"
|
2017-10-27 00:03:01 +02:00
|
|
|
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-07-16 03:28:11 +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
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
2017-07-15 18:40:01 +02:00
|
|
|
|
2017-07-16 03:28:11 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-19 19:08:48 +02:00
|
|
|
android:layout_weight="1.5"
|
2017-07-16 03:28:11 +02:00
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="5dp"
|
2017-10-19 19:08:48 +02:00
|
|
|
android:text="@string/pump_lastconnection_label"
|
2017-07-16 03:28:11 +02:00
|
|
|
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
|
2017-10-19 19:08:48 +02:00
|
|
|
android:id="@+id/combo_lastconnection"
|
2017-07-16 03:28:11 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-07-19 12:37:16 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start"
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-12-03 20:56:35 +01:00
|
|
|
<!-- reading last bolus from pump triggers pump bug
|
2017-07-19 12:37:16 +02:00
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
2017-10-20 00:57:14 +02:00
|
|
|
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
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1.5"
|
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
android:text="@string/pump_lastbolus_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/combo_last_bolus"
|
|
|
|
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-12-03 20:56:35 +01:00
|
|
|
-->
|
2017-10-20 00:57:14 +02:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
2017-07-19 12:37:16 +02:00
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
android:layout_marginTop="5dp"
|
2017-10-20 00:28:49 +02:00
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1.5"
|
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
android:text="@string/pump_tempbasal_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/combo_temp_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>
|
|
|
|
|
|
|
|
<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"
|
2017-07-17 14:54:47 +02:00
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
2017-10-19 19:08:48 +02:00
|
|
|
</LinearLayout>
|
2017-07-17 14:54:47 +02:00
|
|
|
|
2017-10-19 19:08:48 +02:00
|
|
|
</ScrollView>
|
2017-07-16 03:28:11 +02:00
|
|
|
|
2017-10-19 19:08:48 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/combo_buttons"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:orientation="vertical">
|
2017-07-16 03:28:11 +02:00
|
|
|
|
2017-10-19 19:08:48 +02:00
|
|
|
<LinearLayout
|
2017-12-03 21:01:14 +01:00
|
|
|
android:id="@+id/combo_buttons_layout"
|
2017-10-19 19:08:48 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-12-03 21:01:14 +01:00
|
|
|
android:visibility="gone"
|
2017-10-19 19:08:48 +02:00
|
|
|
android:orientation="horizontal">
|
2017-08-27 12:10:42 +02:00
|
|
|
|
2017-10-19 19:08:48 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/combo_refresh"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
2017-08-27 12:10:42 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-19 19:08:48 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:drawableTop="@drawable/icon_actions_refill"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/combo_refresh" />
|
2017-08-27 12:10:42 +02:00
|
|
|
|
2017-10-19 19:08:48 +02:00
|
|
|
<Button
|
2017-10-27 00:03:01 +02:00
|
|
|
android:id="@+id/combo_error_history"
|
2017-10-19 19:08:48 +02:00
|
|
|
style="@style/ButtonSmallFontStyle"
|
2017-07-27 12:20:59 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-19 19:08:48 +02:00
|
|
|
android:layout_weight="1"
|
2017-11-14 10:42:10 +01:00
|
|
|
android:drawableTop="@drawable/icon_danarhistory"
|
2017-10-19 19:08:48 +02:00
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
2017-11-12 18:37:25 +01:00
|
|
|
android:text="@string/combo_pump_alerts" />
|
2017-07-27 12:20:59 +02:00
|
|
|
|
2017-11-12 00:01:01 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/combo_tdd_history"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:drawableTop="@drawable/icon_danarstats"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/combo_stats" />
|
|
|
|
|
2017-10-19 19:08:48 +02:00
|
|
|
</LinearLayout>
|
2017-07-26 22:16:35 +02:00
|
|
|
|
2017-10-19 19:08:48 +02:00
|
|
|
</LinearLayout>
|
2017-07-16 03:28:11 +02:00
|
|
|
|
2017-10-19 19:08:48 +02:00
|
|
|
</RelativeLayout>
|
2017-07-16 03:28:11 +02:00
|
|
|
|
2017-05-24 18:24:23 +02:00
|
|
|
</FrameLayout>
|