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

137 lines
4.8 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"
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">
<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
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"
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
<ImageView
android:layout_width="wrap_content"
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" />
<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_marginLeft="10dp"
android:layout_marginRight="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
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:paddingLeft="5dp"
android:paddingRight="5dp" />
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
<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
<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" />
</LinearLayout>
</ScrollView>