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

146 lines
5.7 KiB
XML
Raw Normal View History

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
android:layout_width="match_parent"
2016-12-29 22:40:30 +01:00
android:layout_height="match_parent">
2016-12-29 22:40:30 +01:00
<LinearLayout
android:layout_width="match_parent"
2016-12-29 22:40:30 +01:00
android:layout_height="wrap_content"
android:orientation="vertical">
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" />
<TextView
2016-12-29 22:40:30 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/units"
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>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-01-29 20:19:02 +01:00
android:text="@string/dia"
android:textAppearance="?android:attr/textAppearanceMedium" />
<EditText
android:id="@+id/simpleprofile_dia"
2016-12-29 22:40:30 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="numberDecimal" />
<TextView
2016-12-29 22:40:30 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/nsprofileview_ic_label"
android:textAppearance="?android:attr/textAppearanceMedium" />
<EditText
android:id="@+id/simpleprofile_ic"
2016-12-29 22:40:30 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="numberDecimal" />
<TextView
2016-12-29 22:40:30 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/nsprofileview_isf_label"
android:textAppearance="?android:attr/textAppearanceMedium" />
<EditText
android:id="@+id/simpleprofile_isf"
2016-12-29 22:40:30 +01:00
android:layout_width="match_parent"
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"
android:layout_height="wrap_content"
android:text="@string/basal_rate"
android:textAppearance="?android:attr/textAppearanceMedium" />
<EditText
android:id="@+id/simpleprofile_basalrate"
2017-01-29 20:19:02 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="numberDecimal" />
<TextView
2016-12-29 22:40:30 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/target_range"
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"
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-14 23:45:55 +02:00
</FrameLayout>