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

218 lines
8.3 KiB
XML
Raw Normal View History

2019-12-18 20:59:33 +01:00
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
2019-12-20 13:58:51 +01:00
xmlns:tools="http://schemas.android.com/tools"
2019-12-18 20:59:33 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusableInTouchMode="true"
android:minWidth="300dp"
android:orientation="vertical"
2019-12-20 18:55:54 +01:00
tools:context=".dialogs.ProfileSwitchDialog">
2019-12-18 20:59:33 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2019-12-20 18:55:54 +01:00
<RelativeLayout
2019-12-18 20:59:33 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
2019-12-21 15:26:41 +01:00
android:background="@color/dialog_title_background"
2019-12-18 20:59:33 +01:00
android:orientation="horizontal"
2019-12-20 18:55:54 +01:00
android:padding="5dp">
2019-12-18 20:59:33 +01:00
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-12-20 13:58:51 +01:00
android:contentDescription="@string/careportal_profileswitch"
2020-06-19 13:59:39 +02:00
android:src="@drawable/ic_actions_profileswitch" />
2019-12-18 20:59:33 +01:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-12-20 18:55:54 +01:00
android:layout_centerInParent="true"
2019-12-18 20:59:33 +01:00
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" />
2019-12-20 18:55:54 +01:00
</RelativeLayout>
<LinearLayout
android:id="@+id/spacer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="5dp" />
2019-12-18 20:59:33 +01:00
<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" />
2020-07-27 21:11:57 +02:00
<info.nightscout.androidaps.utils.ui.MinutesNumberPicker
2019-12-18 20:59:33 +01:00
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"
2019-12-18 23:22:03 +01:00
android:gravity="start"
2019-12-18 20:59:33 +01:00
android:minWidth="45dp"
2019-12-18 23:22:03 +01:00
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:text="@string/unit_minute_short"
2019-12-18 20:59:33 +01:00
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_gravity="center_vertical" />
</LinearLayout>
<LinearLayout
2019-12-18 23:22:03 +01:00
android:id="@+id/overview_profileswitch_reuselayout"
2019-12-18 20:59:33 +01:00
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"
2019-12-18 23:22:03 +01:00
android:gravity="start"
2019-12-18 20:59:33 +01:00
android:minWidth="45dp"
2019-12-18 23:22:03 +01:00
android:paddingStart="5dp"
android:paddingEnd="5dp"
2019-12-18 20:59:33 +01:00
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" />
2020-07-27 21:11:57 +02:00
<info.nightscout.androidaps.utils.ui.NumberPicker
2019-12-18 20:59:33 +01:00
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"
2019-12-18 23:22:03 +01:00
android:gravity="start"
2019-12-18 20:59:33 +01:00
android:minWidth="45dp"
2019-12-18 23:22:03 +01:00
android:paddingStart="5dp"
android:paddingEnd="5dp"
2019-12-18 20:59:33 +01:00
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" />
2020-07-27 21:11:57 +02:00
<info.nightscout.androidaps.utils.ui.NumberPicker
2019-12-18 20:59:33 +01:00
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"
2019-12-18 23:22:03 +01:00
android:gravity="start"
2019-12-18 20:59:33 +01:00
android:minWidth="45dp"
2019-12-18 23:22:03 +01:00
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:text="@string/unit_hours"
2019-12-18 20:59:33 +01:00
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
2019-12-19 23:45:27 +01:00
<include layout="@layout/notes" />
2019-12-18 20:59:33 +01:00
<include layout="@layout/datetime" />
<include layout="@layout/okcancel" />
</LinearLayout>
</ScrollView>