2016-11-11 00:54:10 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-04-13 21:20:11 +02:00
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-12-20 13:58:51 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2019-12-19 23:45:27 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
android:minWidth="300dp"
|
|
|
|
android:orientation="vertical"
|
2019-12-20 18:55:54 +01:00
|
|
|
tools:context=".dialogs.FillDialog">
|
2018-04-13 21:20:11 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
2019-12-19 23:45:27 +01:00
|
|
|
android:layout_width="match_parent"
|
2018-04-13 21:20:11 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-12-19 23:45:27 +01:00
|
|
|
android:orientation="vertical">
|
2018-03-23 22:09:09 +01:00
|
|
|
|
2019-12-20 18:55:54 +01:00
|
|
|
<RelativeLayout
|
2019-12-19 23:45:27 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-11-11 16:18:10 +01:00
|
|
|
android:layout_height="wrap_content"
|
2018-04-15 00:23:08 +02:00
|
|
|
android:layout_gravity="center"
|
2019-12-21 15:26:41 +01:00
|
|
|
android:background="@color/dialog_title_background"
|
2019-12-19 23:45:27 +01:00
|
|
|
android:orientation="horizontal"
|
2019-12-20 18:55:54 +01:00
|
|
|
android:padding="5dp">
|
2018-03-23 22:09:09 +01:00
|
|
|
|
2018-04-15 00:23:08 +02:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="wrap_content"
|
2018-05-13 13:34:39 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-12-19 23:45:27 +01:00
|
|
|
android:contentDescription="@string/primefill"
|
2020-06-19 13:59:39 +02:00
|
|
|
android:src="@drawable/ic_cp_pump_canula" />
|
2018-04-15 00:23:08 +02:00
|
|
|
|
|
|
|
<TextView
|
2019-12-19 23:45:27 +01:00
|
|
|
android:layout_width="match_parent"
|
2018-04-15 00:23:08 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-12-20 18:55:54 +01:00
|
|
|
android:layout_centerInParent="true"
|
2018-05-13 13:34:39 +02:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
2018-04-15 00:23:08 +02:00
|
|
|
android:text="@string/primefill"
|
2019-12-19 23:45:27 +01:00
|
|
|
android:textAlignment="center"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
2018-03-23 22:09:09 +01:00
|
|
|
|
2019-12-20 18:55:54 +01:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/spacer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="5dp" />
|
2018-04-13 21:20:11 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
2019-12-20 13:58:51 +01:00
|
|
|
android:layout_width="wrap_content"
|
2018-04-13 21:20:11 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-12-20 18:55:54 +01:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="5dp">
|
2018-04-13 21:20:11 +02:00
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/fill_catheter_change"
|
2019-12-19 23:45:27 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-04-13 21:20:11 +02:00
|
|
|
android:layout_marginTop="5dp"
|
2018-04-15 19:29:23 +02:00
|
|
|
android:text="@string/careportal_pumpsitechange" />
|
2018-03-23 22:09:09 +01:00
|
|
|
|
2018-04-13 21:20:11 +02:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/fill_cartridge_change"
|
2019-12-19 23:45:27 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-04-15 19:29:23 +02:00
|
|
|
android:text="@string/careportal_insulincartridgechange" />
|
2018-04-13 21:20:11 +02:00
|
|
|
|
2018-04-15 00:23:08 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
2019-12-19 23:45:27 +01:00
|
|
|
android:layout_width="match_parent"
|
2018-04-15 00:23:08 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-12-20 18:55:54 +01:00
|
|
|
android:orientation="horizontal">
|
2018-04-15 00:23:08 +02:00
|
|
|
|
|
|
|
<TextView
|
2019-12-19 23:45:27 +01:00
|
|
|
android:layout_width="wrap_content"
|
2018-04-15 00:23:08 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
2019-12-19 23:45:27 +01:00
|
|
|
android:width="120dp"
|
2019-12-20 18:55:54 +01:00
|
|
|
android:padding="10dp"
|
2019-12-19 23:45:27 +01:00
|
|
|
android:text="@string/overview_insulin_label"
|
|
|
|
android:textStyle="bold" />
|
2018-04-15 00:23:08 +02:00
|
|
|
|
2020-07-27 21:11:57 +02:00
|
|
|
<info.nightscout.androidaps.utils.ui.NumberPicker
|
2018-04-13 21:20:11 +02:00
|
|
|
android:id="@+id/fill_insulinamount"
|
2018-04-15 00:23:08 +02:00
|
|
|
android:layout_width="wrap_content"
|
2018-04-13 21:20:11 +02:00
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_gravity="end"
|
2018-04-15 00:23:08 +02:00
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:paddingRight="5dp" />
|
2018-03-23 22:09:09 +01:00
|
|
|
|
2018-04-15 00:23:08 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:text="@string/insulin_unit_shortname" />
|
2018-04-13 21:20:11 +02:00
|
|
|
</LinearLayout>
|
2018-03-23 22:09:09 +01:00
|
|
|
|
2019-12-19 23:45:27 +01:00
|
|
|
<LinearLayout
|
2018-04-13 21:20:11 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-12-20 18:55:54 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="5dp">
|
2018-03-23 22:09:09 +01:00
|
|
|
|
2018-04-13 21:20:11 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/fill_preset_button1"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="0.3U" />
|
2016-11-11 16:18:10 +01:00
|
|
|
|
2018-04-13 21:20:11 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/fill_preset_button2"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="0.7U" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/fill_preset_button3"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="1.2U" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2019-12-19 23:45:27 +01:00
|
|
|
<include layout="@layout/notes" />
|
2016-11-11 16:18:10 +01:00
|
|
|
|
2019-12-19 23:45:27 +01:00
|
|
|
<include layout="@layout/datetime" />
|
2016-11-11 16:18:10 +01:00
|
|
|
|
2019-12-02 22:16:20 +01:00
|
|
|
<include layout="@layout/okcancel" />
|
2018-04-13 21:20:11 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</ScrollView>
|