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

148 lines
6.3 KiB
XML
Raw Normal View History

2016-06-20 20:45:55 +02:00
<?xml version="1.0" encoding="utf-8"?>
2017-04-30 20:54:35 +02:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2016-06-20 20:45:55 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-08-31 22:00:45 +02:00
tools:context="info.nightscout.androidaps.plugins.Actions.dialogs.NewTempBasalDialog">
2016-06-20 20:45:55 +02:00
2017-04-30 20:54:35 +02:00
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
2016-06-20 20:45:55 +02:00
2017-04-30 20:54:35 +02:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2017-08-01 20:02:17 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-04-30 20:54:35 +02:00
android:orientation="vertical"
android:padding="10dp">
2016-06-20 20:45:55 +02:00
2017-08-01 20:02:17 +02:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/pump_tempbasal_label"
2017-08-01 20:02:17 +02:00
android:textAppearance="?android:attr/textAppearanceLarge" />
<LinearLayout
2017-05-30 18:10:05 +02:00
android:id="@+id/overview_newtempbasal_typeselector_layout"
2017-08-01 20:02:17 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:orientation="vertical">
2017-05-30 18:10:05 +02:00
<TextView
2017-08-01 20:02:17 +02:00
android:id="@+id/textView2"
android:layout_width="match_parent"
2017-05-30 18:10:05 +02:00
android:layout_height="wrap_content"
2017-08-01 20:02:17 +02:00
android:layout_gravity="center_horizontal"
android:layout_marginBottom="5dp"
android:layout_marginTop="15dp"
2017-05-30 18:10:05 +02:00
android:text="@string/overview_newtempbasal_basaltype_label"
2017-08-01 20:02:17 +02:00
android:textAlignment="center"
2017-05-30 18:10:05 +02:00
android:textAppearance="@android:style/TextAppearance.Material.Small"
android:textStyle="bold" />
2017-04-30 20:54:35 +02:00
<RadioGroup
android:id="@+id/overview_newtempbasal_radiogroup"
2017-08-01 20:02:17 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
2017-05-30 18:10:05 +02:00
android:orientation="vertical">
2017-04-30 20:54:35 +02:00
<RadioButton
android:id="@+id/overview_newtempbasal_percent_radio"
android:layout_height="wrap_content"
android:checked="true"
2017-08-01 20:02:17 +02:00
android:text="@string/overview_newtempbasal_percent_label" />
2017-04-30 20:54:35 +02:00
<RadioButton
android:id="@+id/overview_newtempbasal_absolute_radio"
android:layout_height="wrap_content"
android:text="U/h" />
2017-08-01 20:02:17 +02:00
</RadioGroup>
2017-05-30 18:10:05 +02:00
2017-08-01 20:02:17 +02:00
</LinearLayout>
2017-04-30 20:54:35 +02:00
2017-08-01 20:02:17 +02:00
<LinearLayout
android:id="@+id/overview_newtempbasal_percent_layout"
android:layout_width="wrap_content"
2016-07-03 13:25:23 +02:00
android:layout_height="wrap_content"
2017-08-01 20:02:17 +02:00
android:layout_gravity="center_horizontal"
2017-04-30 20:54:35 +02:00
android:orientation="vertical">
2017-08-01 20:02:17 +02:00
2017-04-30 20:54:35 +02:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-08-01 20:02:17 +02:00
android:layout_gravity="center_horizontal"
android:layout_marginBottom="5dp"
android:layout_marginTop="15dp"
android:text="@string/overview_newtempbasal_basalpercent"
2017-05-30 18:10:05 +02:00
android:textAppearance="@android:style/TextAppearance.Material.Small"
android:textStyle="bold" />
2017-04-30 20:54:35 +02:00
2017-08-01 20:02:17 +02:00
<info.nightscout.utils.NumberPicker
android:id="@+id/overview_newtempbasal_basalpercentinput"
android:layout_width="130dp"
android:layout_height="40dp"
android:layout_gravity="end"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp" />
2017-04-30 20:54:35 +02:00
2017-08-01 20:02:17 +02:00
</LinearLayout>
2017-04-30 20:54:35 +02:00
2017-08-01 20:02:17 +02:00
<LinearLayout
android:id="@+id/overview_newtempbasal_absolute_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:orientation="vertical">
2017-04-30 20:54:35 +02:00
2017-05-30 18:10:05 +02:00
<TextView
2017-04-30 20:54:35 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-08-01 20:02:17 +02:00
android:layout_gravity="center_horizontal"
android:layout_marginBottom="5dp"
android:layout_marginTop="15dp"
android:text="@string/overview_newtempbasal_basalabsolute"
2017-05-30 18:10:05 +02:00
android:textAppearance="@android:style/TextAppearance.Material.Small"
android:textStyle="bold" />
2017-04-30 20:54:35 +02:00
2017-08-01 20:02:17 +02:00
<info.nightscout.utils.NumberPicker
android:id="@+id/overview_newtempbasal_basalabsoluteinput"
android:layout_width="130dp"
android:layout_height="40dp"
android:layout_gravity="end"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp" />
2017-04-30 20:54:35 +02:00
2017-08-01 20:02:17 +02:00
</LinearLayout>
2017-04-30 20:54:35 +02:00
2017-08-01 20:02:17 +02:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="5dp"
android:layout_marginTop="15dp"
android:text="@string/careportal_newnstreatment_duration_min_label"
android:textAppearance="@android:style/TextAppearance.Material.Small"
android:textStyle="bold" />
<info.nightscout.utils.NumberPicker
android:id="@+id/overview_newtempbasal_duration"
android:layout_width="130dp"
android:layout_height="40dp"
android:layout_gravity="end"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp" />
<include layout="@layout/mdtp_done_button" />
2016-07-03 13:25:23 +02:00
</LinearLayout>
2017-05-30 18:10:05 +02:00
2017-04-30 20:54:35 +02:00
</ScrollView>
2017-05-30 18:10:05 +02:00
2017-04-30 20:54:35 +02:00
</FrameLayout>