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"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="10dp">
|
|
|
|
|
2017-05-16 12:09:32 +02:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
2017-04-30 20:54:35 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-16 12:09:32 +02:00
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:text="@string/treatments_newtreatment_insulinamount_label"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Material.Small"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<LinearLayout
|
2017-04-30 20:54:35 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-16 12:09:32 +02:00
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_marginTop="50dp"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/treatments_newtreatment_insulinamount_minus"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="@drawable/circle"
|
|
|
|
android:backgroundTint="#ffffff"
|
|
|
|
android:src="@drawable/ic_action_minus"
|
|
|
|
android:tint="#ffffff" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/treatments_newtreatment_insulinamount"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:inputType="numberDecimal"
|
|
|
|
android:minWidth="100dp"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/treatments_newtreatment_insulinamount_plus"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="@drawable/circle"
|
|
|
|
android:backgroundTint="#ffffff"
|
|
|
|
android:src="@drawable/ic_action_add"
|
|
|
|
android:tint="#ffffff" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="2dip"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:background="@color/listdelimiter" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
2017-04-30 20:54:35 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-16 12:09:32 +02:00
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:text="@string/treatments_newtreatment_carbsamount_label"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Material.Small"
|
|
|
|
android:textStyle="bold" />
|
2017-04-30 20:54:35 +02:00
|
|
|
|
2017-05-16 12:09:32 +02:00
|
|
|
<LinearLayout
|
2017-04-30 20:54:35 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-16 12:09:32 +02:00
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_marginTop="30dp"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/treatments_newtreatment_carbsamount_minus"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="@drawable/circle"
|
|
|
|
android:backgroundTint="#ffffff"
|
|
|
|
android:src="@drawable/ic_action_minus"
|
|
|
|
android:tint="#ffffff" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/treatments_newtreatment_carbsamount"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:inputType="numberDecimal"
|
|
|
|
android:minWidth="100dp"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/treatments_newtreatment_carbsamount_plus"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="@drawable/circle"
|
|
|
|
android:backgroundTint="#ffffff"
|
|
|
|
android:src="@drawable/ic_action_add"
|
|
|
|
android:tint="#ffffff" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<include layout="@layout/mdtp_done_button" />
|
2017-04-30 20:54:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</FrameLayout>
|