2016-06-07 21:48:17 +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-07 21:48:17 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2017-06-27 00:11:23 +02:00
|
|
|
tools:context="info.nightscout.androidaps.plugins.Overview.Dialogs.NewTreatmentDialog">
|
2017-04-30 20:54:35 +02:00
|
|
|
|
|
|
|
<ScrollView
|
2016-06-07 21:48:17 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-04-30 20:54:35 +02:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-06-27 19:14:32 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-04-30 20:54:35 +02:00
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="10dp">
|
|
|
|
|
2017-06-27 19:14:32 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
2018-02-15 21:00:09 +01:00
|
|
|
android:text="@string/overview_treatment_label"
|
2017-06-27 19:14:32 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
|
2018-03-12 17:52:52 +01:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/newtreatment_record_only"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2018-05-13 13:34:39 +02:00
|
|
|
android:text="@string/do_not_bolus_record_only" />
|
2018-03-12 17:52:52 +01:00
|
|
|
|
2017-06-27 19:14:32 +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/treatments_newtreatment_insulinamount_label"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Material.Small"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<info.nightscout.utils.NumberPicker
|
|
|
|
android:id="@+id/treatments_newtreatment_insulinamount"
|
|
|
|
android:layout_width="130dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:layout_marginLeft="30dp"
|
|
|
|
android:layout_marginRight="30dp" />
|
|
|
|
|
|
|
|
<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/treatments_newtreatment_carbsamount_label"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Material.Small"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<info.nightscout.utils.NumberPicker
|
|
|
|
android:id="@+id/treatments_newtreatment_carbsamount"
|
|
|
|
android:layout_width="130dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginBottom="15dp" />
|
2017-05-16 12:09:32 +02:00
|
|
|
|
|
|
|
<include layout="@layout/mdtp_done_button" />
|
2017-04-30 20:54:35 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
2017-06-27 19:14:32 +02:00
|
|
|
|
2017-04-30 20:54:35 +02:00
|
|
|
</ScrollView>
|
|
|
|
</FrameLayout>
|