2016-11-11 00:54:10 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<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">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:text="@string/treatments_newtreatment_insulinamount_label"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
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:inputType="numberDecimal"
|
|
|
|
android:minWidth="200dp"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
|
|
android:gravity="center_horizontal" />
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="10dp">
|
|
|
|
|
|
|
|
<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="@string/primefill"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2016-11-11 16:18:10 +01:00
|
|
|
<View
|
|
|
|
android:id="@+id/fill_preset_divider"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="@android:color/darker_gray"/>
|
|
|
|
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:layout_gravity="center_horizontal">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/fill_preset_button1"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="0.3"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:text="0.3U"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
<Button
|
|
|
|
android:id="@+id/fill_preset_button2"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="0.3"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:text="0.7U"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
<Button
|
|
|
|
android:id="@+id/fill_preset_button3"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="0.3"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:text="1.2U"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2016-11-11 00:54:10 +01:00
|
|
|
|
|
|
|
</LinearLayout>
|