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

236 lines
9.1 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"
2020-10-19 19:24:33 +02:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2019-12-20 13:58:51 +01:00
xmlns:tools="http://schemas.android.com/tools"
style="@style/StyleDialog"
2019-12-18 20:59:33 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusableInTouchMode="true"
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
style="@style/StyleDialogHeader"
2019-12-18 20:59:33 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center">
2019-12-18 20:59:33 +01:00
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:importantForAccessibility="no"
2020-10-19 19:24:33 +02:00
app:srcCompat="@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_marginStart="10dp"
android:layout_marginEnd="10dp"
2019-12-18 20:59:33 +01:00
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
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
2019-12-18 20:59:33 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginEnd="5dp"
android:hint="@string/profile">
2019-12-18 20:59:33 +01:00
<com.google.android.material.textfield.MaterialAutoCompleteTextView
android:id="@+id/profileList"
android:layout_width="match_parent"
2019-12-18 20:59:33 +01:00
android:layout_height="wrap_content"
android:inputType="none" />
2019-12-18 20:59:33 +01:00
</com.google.android.material.textfield.TextInputLayout>
2019-12-18 20:59:33 +01:00
<LinearLayout
2021-01-21 16:38:42 +01:00
android:id="@+id/reuselayout"
2019-12-18 20:59:33 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="horizontal"
2021-11-05 09:53:59 +01:00
android:visibility="gone">
2019-12-18 20:59:33 +01:00
<info.nightscout.androidaps.utils.ui.SingleClickButton
2021-01-21 16:38:42 +01:00
android:id="@+id/reusebutton"
style="@style/ButtonSmallFontStyle"
android:drawablePadding="10dp"
2019-12-18 20:59:33 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-10-30 14:54:34 +02:00
android:drawableStart="@drawable/ic_clone" />
2019-12-18 20:59:33 +01:00
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="5dp"
android:orientation="horizontal">
2019-12-18 20:59:33 +01:00
<TextView
android:id="@+id/duration_label"
2019-12-18 20:59:33 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
2019-12-18 20:59:33 +01:00
android:width="120dp"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:text="@string/careportal_newnstreatment_duration_label"
2020-10-19 19:24:33 +02:00
android:textAppearance="@style/TextAppearance.AppCompat.Small"
2019-12-18 20:59:33 +01:00
android:textStyle="bold" />
<info.nightscout.androidaps.utils.ui.MinutesNumberPicker
2021-01-21 16:38:42 +01:00
android:id="@+id/duration"
android:layout_width="130dp"
android:layout_height="40dp"
2022-03-18 14:32:20 +01:00
android:layout_marginBottom="2dp"
app:customContentDescription="@string/careportal_newnstreatment_duration_label" />
2019-12-18 20:59:33 +01:00
<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:id="@+id/percentage_label"
2019-12-18 20:59:33 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
2019-12-18 20:59:33 +01:00
android:width="120dp"
android:paddingStart="10dp"
android:paddingEnd="10dp"
2019-12-18 20:59:33 +01:00
android:text="@string/careportal_newnstreatment_percentage_label"
2020-10-19 19:24:33 +02:00
android:textAppearance="@style/TextAppearance.AppCompat.Small"
2019-12-18 20:59:33 +01:00
android:textStyle="bold" />
2020-07-27 21:11:57 +02:00
<info.nightscout.androidaps.utils.ui.NumberPicker
2021-01-21 16:38:42 +01:00
android:id="@+id/percentage"
2019-12-18 20:59:33 +01:00
android:layout_width="130dp"
android:layout_height="40dp"
2022-03-18 14:32:20 +01:00
android:layout_marginBottom="2dp"
app:customContentDescription="@string/careportal_newnstreatment_percentage_label" />
2019-12-18 20:59:33 +01:00
<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="%"
2022-04-19 10:36:10 +02:00
android:textAppearance="?android:attr/textAppearanceSmall"
tools:ignore="HardcodedText" />
2019-12-18 20:59:33 +01:00
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/timeshift_label"
2019-12-18 20:59:33 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
2019-12-18 20:59:33 +01:00
android:width="120dp"
android:paddingStart="10dp"
android:paddingEnd="10dp"
2019-12-18 20:59:33 +01:00
android:text="@string/careportal_newnstreatment_timeshift_label"
2020-10-19 19:24:33 +02:00
android:textAppearance="@style/TextAppearance.AppCompat.Small"
2019-12-18 20:59:33 +01:00
android:textStyle="bold" />
2020-07-27 21:11:57 +02:00
<info.nightscout.androidaps.utils.ui.NumberPicker
2021-01-21 16:38:42 +01:00
android:id="@+id/timeshift"
2019-12-18 20:59:33 +01:00
android:layout_width="130dp"
android:layout_height="40dp"
app:customContentDescription="@string/careportal_newnstreatment_timeshift_label"/>
2019-12-18 20:59:33 +01:00
<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>
<LinearLayout
android:id="@+id/tt_layout"
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"
android:width="120dp"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:text="@string/careportal_temporarytarget"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="bold" />
<CheckBox
android:id="@+id/tt"
2022-04-19 10:36:10 +02:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:text="@string/activity" />
</LinearLayout>
2021-01-21 16:38:42 +01:00
<include
android:id="@+id/notes_layout"
layout="@layout/notes" />
2019-12-18 20:59:33 +01:00
2021-01-21 16:38:42 +01:00
<include
android:id="@+id/datetime"
layout="@layout/datetime" />
2019-12-18 20:59:33 +01:00
2021-01-21 16:38:42 +01:00
<include
android:id="@+id/okcancel"
layout="@layout/okcancel" />
2019-12-18 20:59:33 +01:00
</LinearLayout>
</ScrollView>