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-10-27 11:52:35 +02: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-10-19 19:08:48 +02: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"
|
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"
|
|
|
|
android:textSize="20dp" />
|
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" />
|
|
|
|
|
|
|
|
<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-10-27 11:52:35 +02:00
|
|
|
android:text="@string/pump_reservoir_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_insulinstate"
|
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>
|
|
|
|
|
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-10-27 11:52:35 +02:00
|
|
|
android:text="@string/combo_pump_activity"
|
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
|
|
|
|
android:id="@+id/combo_activity"
|
|
|
|
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>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<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
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
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-27 11:52:35 +02:00
|
|
|
<!-- TODO v3-->
|
2017-10-19 19:08:48 +02:00
|
|
|
<Button
|
2017-10-27 00:03:01 +02:00
|
|
|
android:id="@+id/combo_stats"
|
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-10-27 00:03:01 +02:00
|
|
|
android:drawableTop="@drawable/icon_danarstats"
|
2017-10-19 19:08:48 +02:00
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
2017-10-27 00:03:01 +02:00
|
|
|
android:visibility="gone"
|
|
|
|
android:text="@string/combo_stats" />
|
2017-07-27 12:20:59 +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-10-27 00:03:01 +02:00
|
|
|
android:drawableTop="@drawable/icon_cp_aaps_offline"
|
2017-10-19 19:08:48 +02:00
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
2017-10-27 00:03:01 +02:00
|
|
|
android:text="@string/pump_errors_history" />
|
2017-07-27 12:20:59 +02:00
|
|
|
|
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>
|