2016-06-14 23:45:55 +02:00
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-02-28 23:16:50 +01:00
|
|
|
tools:context=".plugins.profile.simple.SimpleProfileFragment">
|
2016-06-14 23:45:55 +02:00
|
|
|
|
2016-12-29 22:40:30 +01:00
|
|
|
<ScrollView
|
2016-06-16 19:22:58 +02:00
|
|
|
android:layout_width="match_parent"
|
2016-12-29 22:40:30 +01:00
|
|
|
android:layout_height="match_parent">
|
2016-06-16 19:22:58 +02:00
|
|
|
|
2016-12-29 22:40:30 +01:00
|
|
|
<LinearLayout
|
2016-06-16 19:22:58 +02:00
|
|
|
android:layout_width="match_parent"
|
2016-12-29 22:40:30 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
2016-06-16 19:22:58 +02:00
|
|
|
|
2018-01-21 13:37:38 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/invalidprofile"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:text="@string/invalidprofile"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
|
|
android:textColor="@android:color/holo_red_light"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
2016-06-16 19:22:58 +02:00
|
|
|
<TextView
|
2016-12-29 22:40:30 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-06-16 19:22:58 +02:00
|
|
|
android:layout_height="wrap_content"
|
2016-12-09 12:40:15 +01:00
|
|
|
android:text="@string/units"
|
2016-06-16 19:22:58 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
|
2016-12-29 22:40:30 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<RadioButton
|
|
|
|
android:id="@+id/simpleprofile_mgdl"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/mgdl" />
|
|
|
|
|
|
|
|
<RadioButton
|
|
|
|
android:id="@+id/simpleprofile_mmol"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/mmol" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2016-06-16 19:22:58 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-01-29 20:19:02 +01:00
|
|
|
android:text="@string/dia"
|
2016-06-16 19:22:58 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/simpleprofile_dia"
|
2016-12-29 22:40:30 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-06-16 19:22:58 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="numberDecimal" />
|
|
|
|
|
|
|
|
<TextView
|
2016-12-29 22:40:30 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-06-16 19:22:58 +02:00
|
|
|
android:layout_height="wrap_content"
|
2016-12-09 12:40:15 +01:00
|
|
|
android:text="@string/nsprofileview_ic_label"
|
2016-06-16 19:22:58 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/simpleprofile_ic"
|
2016-12-29 22:40:30 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-06-16 19:22:58 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="numberDecimal" />
|
|
|
|
|
|
|
|
<TextView
|
2016-12-29 22:40:30 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-06-16 19:22:58 +02:00
|
|
|
android:layout_height="wrap_content"
|
2016-12-09 12:40:15 +01:00
|
|
|
android:text="@string/nsprofileview_isf_label"
|
2016-06-16 19:22:58 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/simpleprofile_isf"
|
2016-12-29 22:40:30 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-06-16 19:22:58 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="numberDecimal" />
|
|
|
|
|
|
|
|
<TextView
|
2017-01-29 20:19:02 +01:00
|
|
|
android:id="@+id/simpleprofile_basalrate_label"
|
2016-12-29 22:40:30 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-06-16 19:22:58 +02:00
|
|
|
android:layout_height="wrap_content"
|
2016-12-09 12:40:15 +01:00
|
|
|
android:text="@string/basal_rate"
|
2016-06-16 19:22:58 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/simpleprofile_basalrate"
|
2017-01-29 20:19:02 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-06-16 19:22:58 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="numberDecimal" />
|
|
|
|
|
|
|
|
<TextView
|
2016-12-29 22:40:30 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-06-16 19:22:58 +02:00
|
|
|
android:layout_height="wrap_content"
|
2016-12-09 12:40:15 +01:00
|
|
|
android:text="@string/target_range"
|
2016-06-16 19:22:58 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
|
2016-12-29 22:40:30 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/simpleprofile_targetlow"
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="numberDecimal" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/simpleprofile_targethigh"
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="numberDecimal" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/simpleprofile_profileswitch"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="wrap_content"
|
2016-06-16 19:22:58 +02:00
|
|
|
android:layout_height="wrap_content"
|
2016-12-29 22:40:30 +01:00
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginBottom="3dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingRight="10dp"
|
2017-10-04 23:33:02 +02:00
|
|
|
android:text="@string/activate_profile"
|
2016-12-29 22:40:30 +01:00
|
|
|
android:textColor="@color/colorProfileSwitchButton" />
|
2016-12-31 13:11:32 +01:00
|
|
|
|
2016-12-29 22:40:30 +01:00
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
2016-06-16 19:22:58 +02:00
|
|
|
|
2016-12-09 12:40:15 +01:00
|
|
|
|
2016-06-14 23:45:55 +02:00
|
|
|
</FrameLayout>
|