225 lines
8.5 KiB
XML
225 lines
8.5 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:focusableInTouchMode="true"
|
||
|
android:minWidth="300dp"
|
||
|
android:orientation="vertical"
|
||
|
android:padding="10dp">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:orientation="horizontal"
|
||
|
android:padding="10dp">
|
||
|
|
||
|
<ImageView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:src="@drawable/icon_actions_profileswitch" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:layout_marginLeft="10dp"
|
||
|
android:layout_marginRight="10dp"
|
||
|
android:text="@string/careportal_profileswitch"
|
||
|
android:textAlignment="center"
|
||
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_horizontal"
|
||
|
android:width="120dp"
|
||
|
android:padding="10dp"
|
||
|
android:text="@string/careportal_newnstreatment_duration_label"
|
||
|
android:textAppearance="@android:style/TextAppearance.Material.Small"
|
||
|
android:textStyle="bold" />
|
||
|
|
||
|
<info.nightscout.androidaps.utils.NumberPicker
|
||
|
android:id="@+id/overview_profileswitch_duration"
|
||
|
android:layout_width="130dp"
|
||
|
android:layout_height="40dp" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_vertical"
|
||
|
android:gravity="left"
|
||
|
android:minWidth="45dp"
|
||
|
android:paddingLeft="5dp"
|
||
|
android:text="min"
|
||
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_horizontal"
|
||
|
android:width="120dp"
|
||
|
android:padding="10dp"
|
||
|
android:text="@string/careportal_newnstreatment_profile_label"
|
||
|
android:textAppearance="@android:style/TextAppearance.Material.Small"
|
||
|
android:textStyle="bold" />
|
||
|
|
||
|
<Spinner
|
||
|
android:id="@+id/overview_profileswitch_profile"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_centerInParent="true"
|
||
|
android:layout_gravity="center_vertical" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal"
|
||
|
android:visibility="gone">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_horizontal"
|
||
|
android:width="120dp"
|
||
|
android:padding="10dp"
|
||
|
android:text=""
|
||
|
android:textAppearance="@android:style/TextAppearance.Material.Small"
|
||
|
android:textStyle="bold" />
|
||
|
|
||
|
<Button
|
||
|
android:id="@+id/overview_profileswitch_reusebutton"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/reuse" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_vertical"
|
||
|
android:gravity="left"
|
||
|
android:minWidth="45dp"
|
||
|
android:paddingLeft="5dp"
|
||
|
android:text=" "
|
||
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_horizontal"
|
||
|
android:width="120dp"
|
||
|
android:padding="10dp"
|
||
|
android:text="@string/careportal_newnstreatment_percentage_label"
|
||
|
android:textAppearance="@android:style/TextAppearance.Material.Small"
|
||
|
android:textStyle="bold" />
|
||
|
|
||
|
<info.nightscout.androidaps.utils.NumberPicker
|
||
|
android:id="@+id/overview_profileswitch_percentage"
|
||
|
android:layout_width="130dp"
|
||
|
android:layout_height="40dp" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_vertical"
|
||
|
android:gravity="left"
|
||
|
android:minWidth="45dp"
|
||
|
android:paddingLeft="5dp"
|
||
|
android:text="%"
|
||
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_horizontal"
|
||
|
android:width="120dp"
|
||
|
android:padding="10dp"
|
||
|
android:text="@string/careportal_newnstreatment_timeshift_label"
|
||
|
android:textAppearance="@android:style/TextAppearance.Material.Small"
|
||
|
android:textStyle="bold" />
|
||
|
|
||
|
<info.nightscout.androidaps.utils.NumberPicker
|
||
|
android:id="@+id/overview_profileswitch_timeshift"
|
||
|
android:layout_width="130dp"
|
||
|
android:layout_height="40dp" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_vertical"
|
||
|
android:gravity="left"
|
||
|
android:minWidth="45dp"
|
||
|
android:paddingLeft="5dp"
|
||
|
android:text="h"
|
||
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_horizontal"
|
||
|
android:width="120dp"
|
||
|
android:padding="10dp"
|
||
|
android:text="@string/careportal_newnstreatment_notes_label"
|
||
|
android:textAppearance="@android:style/TextAppearance.Material.Small"
|
||
|
android:textStyle="bold" />
|
||
|
|
||
|
<EditText
|
||
|
android:id="@+id/overview_profileswitch_notes"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:width="180dp"
|
||
|
android:inputType="text" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<include layout="@layout/datetime" />
|
||
|
|
||
|
<include layout="@layout/okcancel" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
</ScrollView>
|
||
|
|