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"
|
2022-03-24 12:15:56 +01:00
|
|
|
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
|
2022-03-24 12:15:56 +01:00
|
|
|
style="@style/StyleDialogHeader"
|
2019-12-18 20:59:33 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-03-24 12:15:56 +01:00
|
|
|
android:layout_gravity="center">
|
2019-12-18 20:59:33 +01:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-01-31 16:01:11 +01:00
|
|
|
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"
|
2022-04-17 19:48:41 +02:00
|
|
|
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
|
|
|
|
2022-03-19 12:00:58 +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"
|
2022-03-19 12:00:58 +01:00
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:layout_marginEnd="5dp"
|
2022-04-06 14:14:07 +02:00
|
|
|
android:hint="@string/profile">
|
2019-12-18 20:59:33 +01:00
|
|
|
|
2022-04-06 14:14:07 +02:00
|
|
|
<com.google.android.material.textfield.MaterialAutoCompleteTextView
|
2022-03-19 12:00:58 +01:00
|
|
|
android:id="@+id/profileList"
|
|
|
|
android:layout_width="match_parent"
|
2019-12-18 20:59:33 +01:00
|
|
|
android:layout_height="wrap_content"
|
2022-04-06 14:14:07 +02:00
|
|
|
android:inputType="none" />
|
2019-12-18 20:59:33 +01:00
|
|
|
|
2022-03-19 12:00:58 +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"
|
2021-10-25 18:09:53 +02:00
|
|
|
android:gravity="center_horizontal"
|
2020-11-22 22:21:58 +01:00
|
|
|
android:orientation="horizontal"
|
2021-11-05 09:53:59 +01:00
|
|
|
android:visibility="gone">
|
2019-12-18 20:59:33 +01:00
|
|
|
|
2021-10-25 18:09:53 +02:00
|
|
|
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
2021-01-21 16:38:42 +01:00
|
|
|
android:id="@+id/reusebutton"
|
2022-04-18 18:24:57 +02:00
|
|
|
style="@style/ButtonSmallFontStyle"
|
2021-10-25 18:09:53 +02:00
|
|
|
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" />
|
2020-11-22 22:21:58 +01:00
|
|
|
|
2019-12-18 20:59:33 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-04-06 14:47:12 +02:00
|
|
|
android:paddingTop="5dp"
|
2020-11-22 22:21:58 +01:00
|
|
|
android:orientation="horizontal">
|
2019-12-18 20:59:33 +01:00
|
|
|
|
|
|
|
<TextView
|
2022-02-12 08:26:07 +01:00
|
|
|
android:id="@+id/duration_label"
|
2019-12-18 20:59:33 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-12-23 22:42:21 +01:00
|
|
|
android:layout_gravity="center"
|
2019-12-18 20:59:33 +01:00
|
|
|
android:width="120dp"
|
2022-04-17 19:48:41 +02:00
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingEnd="10dp"
|
2020-11-22 22:21:58 +01:00
|
|
|
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" />
|
|
|
|
|
2020-11-22 22:21:58 +01:00
|
|
|
<info.nightscout.androidaps.utils.ui.MinutesNumberPicker
|
2021-01-21 16:38:42 +01:00
|
|
|
android:id="@+id/duration"
|
2020-11-22 22:21:58 +01:00
|
|
|
android:layout_width="130dp"
|
2022-02-12 08:26:07 +01:00
|
|
|
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"
|
2020-11-22 22:21:58 +01:00
|
|
|
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
|
2022-02-12 08:26:07 +01:00
|
|
|
android:id="@+id/percentage_label"
|
2019-12-18 20:59:33 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-12-23 22:42:21 +01:00
|
|
|
android:layout_gravity="center"
|
2019-12-18 20:59:33 +01:00
|
|
|
android:width="120dp"
|
2022-04-17 19:48:41 +02:00
|
|
|
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"
|
2022-02-12 08:26:07 +01:00
|
|
|
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
|
2022-02-12 08:26:07 +01:00
|
|
|
android:id="@+id/timeshift_label"
|
2019-12-18 20:59:33 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-12-23 22:42:21 +01:00
|
|
|
android:layout_gravity="center"
|
2019-12-18 20:59:33 +01:00
|
|
|
android:width="120dp"
|
2022-04-17 19:48:41 +02:00
|
|
|
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"
|
2022-02-12 08:26:07 +01:00
|
|
|
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>
|
|
|
|
|
2021-10-04 22:40:02 +02:00
|
|
|
<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"
|
2022-04-17 19:48:41 +02:00
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingEnd="10dp"
|
2021-10-04 22:40:02 +02:00
|
|
|
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"
|
2021-10-04 22:40:02 +02:00
|
|
|
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>
|