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"
|
2020-10-19 19:24:33 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-12-20 13:58:51 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2022-03-24 12:15:56 +01:00
|
|
|
style="@style/StyleDialog"
|
2019-12-19 23:45:27 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:focusableInTouchMode="true"
|
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
|
2022-03-24 12:15:56 +01:00
|
|
|
style="@style/StyleDialogHeader"
|
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"
|
2022-03-24 12:15:56 +01:00
|
|
|
android:layout_gravity="center">
|
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"
|
2022-01-31 16:01:11 +01:00
|
|
|
android:importantForAccessibility="no"
|
2020-10-19 19:24:33 +02:00
|
|
|
app:srcCompat="@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"
|
2022-04-17 19:48:41 +02:00
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginEnd="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
|
2022-02-12 08:26:07 +01:00
|
|
|
android:id="@+id/fill_label"
|
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"
|
2022-04-17 19:48:41 +02:00
|
|
|
android:paddingStart="5dp"
|
|
|
|
android:paddingEnd="5dp"
|
2022-02-12 08:26:07 +01:00
|
|
|
app:customContentDescription="@string/overview_insulin_label" />
|
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
|
|
|
|
2022-02-23 19:05:55 +01:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2018-04-13 21:20:11 +02:00
|
|
|
android:id="@+id/fill_preset_button1"
|
2022-02-23 19:05:55 +01:00
|
|
|
style="@style/GrayButton"
|
2018-04-13 21:20:11 +02:00
|
|
|
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
|
|
|
|
2022-02-23 19:05:55 +01:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2018-04-13 21:20:11 +02:00
|
|
|
android:id="@+id/fill_preset_button2"
|
2022-02-23 19:05:55 +01:00
|
|
|
style="@style/GrayButton"
|
2018-04-13 21:20:11 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="0.7U" />
|
|
|
|
|
2022-02-23 19:05:55 +01:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2018-04-13 21:20:11 +02:00
|
|
|
android:id="@+id/fill_preset_button3"
|
2022-02-23 19:05:55 +01:00
|
|
|
style="@style/GrayButton"
|
2018-04-13 21:20:11 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="1.2U" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2021-01-21 20:21:25 +01:00
|
|
|
<include
|
|
|
|
android:id="@+id/notes_layout"
|
|
|
|
layout="@layout/notes" />
|
2016-11-11 16:18:10 +01:00
|
|
|
|
2021-01-21 20:21:25 +01:00
|
|
|
<include
|
|
|
|
android:id="@+id/datetime"
|
|
|
|
layout="@layout/datetime" />
|
2016-11-11 16:18:10 +01:00
|
|
|
|
2021-01-21 20:21:25 +01:00
|
|
|
<include
|
|
|
|
android:id="@+id/okcancel"
|
|
|
|
layout="@layout/okcancel" />
|
2018-04-13 21:20:11 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</ScrollView>
|