136 lines
5.2 KiB
XML
136 lines
5.2 KiB
XML
<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"
|
|
tools:context=".plugins.ProfileSimple.SimpleProfileFragment">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/units"
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
<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"
|
|
android:text="@string/dia"
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
<EditText
|
|
android:id="@+id/simpleprofile_dia"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="numberDecimal" />
|
|
|
|
<TextView
|
|
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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="numberDecimal" />
|
|
|
|
<TextView
|
|
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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="numberDecimal" />
|
|
|
|
<TextView
|
|
android:id="@+id/simpleprofile_basalrate_label"
|
|
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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="numberDecimal" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/target_range"
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
<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"
|
|
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"
|
|
android:text="@string/send_to_pump"
|
|
android:textColor="@color/colorProfileSwitchButton" />
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
|
|
</FrameLayout>
|