AndroidAPS/app/src/main/res/layout/dialog_fill.xml

146 lines
5.3 KiB
XML
Raw Normal View History

2016-11-11 00:54:10 +01:00
<?xml version="1.0" encoding="utf-8"?>
<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"
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">
<LinearLayout
2019-12-19 23:45:27 +01:00
android:layout_width="match_parent"
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
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"
android:layout_gravity="center">
2018-03-23 22:09:09 +01:00
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:importantForAccessibility="no"
2020-10-19 19:24:33 +02:00
app:srcCompat="@drawable/ic_cp_pump_canula" />
<TextView
2019-12-19 23:45:27 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-12-20 18:55:54 +01:00
android:layout_centerInParent="true"
android:layout_gravity="center"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
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" />
<LinearLayout
2019-12-20 13:58:51 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-12-20 18:55:54 +01:00
android:orientation="vertical"
android:padding="5dp">
<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"
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
<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" />
</LinearLayout>
<LinearLayout
2019-12-19 23:45:27 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-12-20 18:55:54 +01:00
android:orientation="horizontal">
<TextView
android:id="@+id/fill_label"
2019-12-19 23:45:27 +01:00
android:layout_width="wrap_content"
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" />
2020-07-27 21:11:57 +02:00
<info.nightscout.androidaps.utils.ui.NumberPicker
android:id="@+id/fill_insulinamount"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="end"
android:paddingStart="5dp"
android:paddingEnd="5dp"
app:customContentDescription="@string/overview_insulin_label" />
2018-03-23 22:09:09 +01:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/insulin_unit_shortname" />
</LinearLayout>
2018-03-23 22:09:09 +01:00
2019-12-19 23:45:27 +01:00
<LinearLayout
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
android:id="@+id/fill_preset_button1"
2022-02-23 19:05:55 +01:00
style="@style/GrayButton"
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
android:id="@+id/fill_preset_button2"
2022-02-23 19:05:55 +01:00
style="@style/GrayButton"
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
android:id="@+id/fill_preset_button3"
2022-02-23 19:05:55 +01:00
style="@style/GrayButton"
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" />
</LinearLayout>
</ScrollView>