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

126 lines
4.7 KiB
XML
Raw Normal View History

2016-06-07 21:48:17 +02:00
<?xml version="1.0" encoding="utf-8"?>
2016-06-28 11:19:27 +02:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2016-06-07 21:48:17 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2016-06-28 11:19:27 +02:00
android:focusableInTouchMode="true"
2016-06-07 21:48:17 +02:00
android:orientation="vertical"
2016-06-28 11:19:27 +02:00
android:padding="10dp">
2016-06-07 21:48:17 +02:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2016-06-28 11:19:27 +02:00
android:layout_gravity="center_horizontal"
2016-06-07 21:48:17 +02:00
android:padding="10dp"
android:text="@string/treatments_newtreatment_insulinamount_label"
2016-06-28 11:19:27 +02:00
android:textAppearance="?android:attr/textAppearanceLarge" />
2016-06-07 21:48:17 +02:00
2016-06-28 11:19:27 +02:00
<LinearLayout
2016-06-07 21:48:17 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
2016-06-28 11:19:27 +02:00
android:orientation="horizontal">
<ImageView
2016-07-06 11:11:12 +02:00
android:id="@+id/treatments_newtreatment_insulinamount_minus"
2016-06-28 11:19:27 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/circle"
android:backgroundTint="#ffffff"
2016-07-06 11:11:12 +02:00
android:src="@drawable/ic_action_minus"
2016-06-28 11:19:27 +02:00
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:inputType="numberDecimal"
android:minWidth="200dp"
android:padding="10dp"
android:text=""
android:textAppearance="?android:attr/textAppearanceLarge"
android:gravity="center_horizontal" />
<ImageView
2016-07-06 11:11:12 +02:00
android:id="@+id/treatments_newtreatment_insulinamount_plus"
2016-06-28 11:19:27 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/circle"
android:backgroundTint="#ffffff"
2016-07-06 11:11:12 +02:00
android:src="@drawable/ic_action_add"
2016-06-28 11:19:27 +02:00
android:tint="#ffffff" />
</LinearLayout>
2016-06-07 21:48:17 +02:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2016-06-28 11:19:27 +02:00
android:layout_gravity="center_horizontal"
2016-06-07 21:48:17 +02:00
android:padding="10dp"
android:text="@string/treatments_newtreatment_carbsamount_label"
2016-06-28 11:19:27 +02:00
android:textAppearance="?android:attr/textAppearanceLarge" />
2016-06-07 21:48:17 +02:00
2016-06-28 11:19:27 +02:00
<LinearLayout
2016-06-07 21:48:17 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2016-06-28 11:19:27 +02:00
android:orientation="horizontal"
android:layout_gravity="center_horizontal">
2016-06-07 21:48:17 +02:00
2016-06-28 11:19:27 +02:00
<ImageView
2016-07-06 11:11:12 +02:00
android:id="@+id/treatments_newtreatment_carbsamount_minus"
2016-06-28 11:19:27 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/circle"
android:backgroundTint="#ffffff"
2016-07-06 11:11:12 +02:00
android:src="@drawable/ic_action_minus"
2016-06-28 11:19:27 +02:00
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:inputType="numberDecimal"
android:minWidth="200dp"
android:padding="10dp"
android:text=""
android:textAppearance="?android:attr/textAppearanceLarge"
android:gravity="center_horizontal" />
<ImageView
2016-07-06 11:11:12 +02:00
android:id="@+id/treatments_newtreatment_carbsamount_plus"
2016-06-28 11:19:27 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/circle"
android:backgroundTint="#ffffff"
2016-07-06 11:11:12 +02:00
android:src="@drawable/ic_action_add"
2016-06-28 11:19:27 +02:00
android:tint="#ffffff" />
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2016-06-07 21:48:17 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
2016-06-28 11:19:27 +02:00
android:layout_marginRight="20dp"
android:orientation="horizontal"
android:padding="10dp">
2016-06-07 21:48:17 +02:00
2016-06-28 11:19:27 +02:00
<Button
android:id="@+id/treatments_newtreatment_deliverbutton"
style="?android:attr/buttonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:padding="10dp"
android:text="OK"
android:textSize="20sp" />
2016-06-07 21:48:17 +02:00
</LinearLayout>
</LinearLayout>