2016-06-20 20:45:55 +02: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:orientation="vertical"
|
|
|
|
android:padding="10dp">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<RadioGroup
|
2016-07-03 13:25:23 +02:00
|
|
|
android:id="@+id/overview_newtempbasal_radiogroup"
|
2016-06-20 20:45:55 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<RadioButton
|
2016-07-03 13:25:23 +02:00
|
|
|
android:id="@+id/overview_newtempbasal_percent_radio"
|
2016-06-20 20:45:55 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2016-07-03 13:25:23 +02:00
|
|
|
android:layout_marginRight="20dp"
|
2016-06-20 20:45:55 +02:00
|
|
|
android:checked="true"
|
2016-07-03 13:25:23 +02:00
|
|
|
android:text="@string/overview_newtempbasal_percent_label" />
|
2016-06-20 20:45:55 +02:00
|
|
|
|
|
|
|
<RadioButton
|
2016-07-03 13:25:23 +02:00
|
|
|
android:id="@+id/overview_newtempbasal_absolute_radio"
|
2016-06-20 20:45:55 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2016-07-03 13:25:23 +02:00
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:text="U/h" />
|
2016-06-20 20:45:55 +02:00
|
|
|
</RadioGroup>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:text="@string/overview_newtempbasal_basal_label"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
|
2016-07-03 13:25:23 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_newtempbasal_percent_layout"
|
2016-06-20 20:45:55 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2016-07-03 13:25:23 +02:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_gravity="center_horizontal">
|
|
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/overview_newtempbasal_basalpercent_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"
|
|
|
|
android:layout_weight="0.5" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/overview_newtempbasal_basalpercentinput"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:inputType="numberDecimal"
|
|
|
|
android:minWidth="100dp"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
|
|
android:gravity="center_horizontal" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/overview_newtempbasal_basalpercent_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"
|
|
|
|
android:layout_weight="0.5" />
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_newtempbasal_absolute_layout"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_gravity="center_horizontal">
|
|
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/overview_newtempbasal_basalabsolute_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"
|
|
|
|
android:layout_weight="0.5" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/overview_newtempbasal_basalabsoluteinput"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:inputType="numberDecimal"
|
|
|
|
android:minWidth="100dp"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
|
|
android:gravity="center_horizontal" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/overview_newtempbasal_basalabsolute_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"
|
|
|
|
android:layout_weight="0.5" />
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
2016-06-20 20:45:55 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<RadioGroup
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal">
|
|
|
|
|
|
|
|
<RadioButton
|
2016-07-03 13:25:23 +02:00
|
|
|
android:id="@+id/overview_newtempbasal_05h"
|
2016-06-20 20:45:55 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2016-07-03 13:25:23 +02:00
|
|
|
android:checked="true"
|
|
|
|
android:text="0.5 h" />
|
2016-06-20 20:45:55 +02:00
|
|
|
|
|
|
|
<RadioButton
|
2016-07-03 13:25:23 +02:00
|
|
|
android:id="@+id/overview_newtempbasal_1h"
|
2016-06-20 20:45:55 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2016-07-03 13:25:23 +02:00
|
|
|
android:text="1 h" />
|
2016-06-20 20:45:55 +02:00
|
|
|
|
|
|
|
<RadioButton
|
2016-07-03 13:25:23 +02:00
|
|
|
android:id="@+id/overview_newtempbasal_2h"
|
2016-06-20 20:45:55 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2016-07-03 13:25:23 +02:00
|
|
|
android:text="2 h" />
|
2016-06-20 20:45:55 +02:00
|
|
|
|
|
|
|
<RadioButton
|
2016-07-03 13:25:23 +02:00
|
|
|
android:id="@+id/overview_newtempbasal_3h"
|
2016-06-20 20:45:55 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2016-07-03 13:25:23 +02:00
|
|
|
android:text="3 h" />
|
2016-06-20 20:45:55 +02:00
|
|
|
|
|
|
|
<RadioButton
|
2016-07-03 13:25:23 +02:00
|
|
|
android:id="@+id/overview_newtempbasal_4h"
|
2016-06-20 20:45:55 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2016-07-03 13:25:23 +02:00
|
|
|
android:text="4 h" />
|
2016-06-20 20:45:55 +02:00
|
|
|
</RadioGroup>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/overview_newtempbasal_okbutton"
|
2016-06-25 00:09:52 +02:00
|
|
|
style="?android:attr/buttonStyle"
|
2016-06-20 20:45:55 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:text="OK"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|