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

312 lines
11 KiB
XML
Raw Normal View History

2021-02-01 20:36:58 +01:00
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2016-10-20 23:50:31 +02:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
2019-04-08 15:38:20 +02:00
tools:context=".plugins.general.overview.dialogs.EditQuickWizardDialog">
2016-10-20 23:50:31 +02:00
2021-02-01 20:36:58 +01:00
<LinearLayout
2016-10-20 23:50:31 +02:00
android:layout_width="match_parent"
2021-02-01 20:36:58 +01:00
android:layout_height="wrap_content"
android:orientation="vertical">
2016-10-20 23:50:31 +02:00
2021-02-01 20:36:58 +01:00
<RelativeLayout
2016-10-20 23:50:31 +02:00
android:layout_width="match_parent"
2021-02-01 20:36:58 +01:00
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@color/dialog_title_background"
android:orientation="horizontal"
android:padding="5dp">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/quickwizard"
2021-02-04 12:03:34 +01:00
app:srcCompat="@drawable/ic_quick_wizard" />
2016-10-20 23:50:31 +02:00
2017-12-26 01:22:35 +01:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:layout_centerInParent="true"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:text="@string/quickwizardsettings"
android:textAlignment="center"
android:textAppearance="?android:attr/textAppearanceLarge" />
</RelativeLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:labelFor="@+id/button_edit"
android:text="@string/overview_editquickwizard_buttontext"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<EditText
android:id="@+id/button_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints="name"
android:ems="10"
android:inputType="text" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:labelFor="@+id/carbs_edit"
android:text="@string/overview_editquickwizard_carbs"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<EditText
android:id="@+id/carbs_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints="number"
android:ems="10"
android:inputType="numberDecimal" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:text="@string/overview_editquickwizard_valid"
2020-10-19 19:24:33 +02:00
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
2016-10-20 23:50:31 +02:00
2021-02-01 20:36:58 +01:00
<TextView
android:id="@+id/from"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"
android:gravity="center_horizontal|center_vertical"
android:padding="10dp"
android:text="08:20pm"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
2016-10-20 23:50:31 +02:00
2017-12-26 01:22:35 +01:00
<TextView
2021-02-01 20:36:58 +01:00
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:text="-"
2020-10-19 19:24:33 +02:00
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
2016-10-20 23:50:31 +02:00
2021-02-01 20:36:58 +01:00
<TextView
android:id="@+id/to"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"
android:gravity="center_horizontal|center_vertical"
android:padding="10dp"
android:text="08:20pm"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/overview_editquickwizard_usebg"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<RadioGroup
android:id="@+id/use_bg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="15dp">
<RadioButton
2017-12-26 01:22:35 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/yes" />
2016-10-20 23:50:31 +02:00
2021-02-01 20:36:58 +01:00
<RadioButton
2017-12-26 01:22:35 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/no" />
</RadioGroup>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/overview_editquickwizard_usebolusiob"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<RadioGroup
android:id="@+id/use_bolus_iob"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="15dp">
2016-10-20 23:50:31 +02:00
2021-02-01 20:36:58 +01:00
<RadioButton
2016-10-20 23:50:31 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/yes" />
2016-10-20 23:50:31 +02:00
2021-02-01 20:36:58 +01:00
<RadioButton
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/no" />
2017-12-26 01:22:35 +01:00
2021-02-01 20:36:58 +01:00
</RadioGroup>
2017-12-26 01:22:35 +01:00
2021-02-01 20:36:58 +01:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/overview_editquickwizard_usebasaliob"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
2017-12-26 01:22:35 +01:00
2021-02-01 20:36:58 +01:00
<RadioGroup
android:id="@+id/use_basal_iob"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="15dp">
2017-12-26 01:22:35 +01:00
2021-02-01 20:36:58 +01:00
<RadioButton
2016-10-20 23:50:31 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/yes" />
2016-10-20 23:50:31 +02:00
2021-02-01 20:36:58 +01:00
<RadioButton
android:layout_width="match_parent"
2017-12-26 01:22:35 +01:00
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/no" />
2016-10-20 23:50:31 +02:00
2021-02-01 20:36:58 +01:00
<RadioButton
2017-12-26 01:22:35 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/positiveonly" />
2017-12-26 00:27:34 +01:00
2021-02-01 20:36:58 +01:00
<RadioButton
android:layout_width="match_parent"
2017-12-26 01:22:35 +01:00
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/negativeonly" />
2017-12-26 00:27:34 +01:00
2021-02-01 20:36:58 +01:00
</RadioGroup>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/overview_editquickwizard_usecob"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<RadioGroup
android:id="@+id/use_cob"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="15dp">
<RadioButton
android:id="@+id/use_cob_yes"
2017-12-26 01:22:35 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/yes" />
2017-12-26 00:27:34 +01:00
2021-02-01 20:36:58 +01:00
<RadioButton
android:id="@+id/use_cob_no"
android:layout_width="match_parent"
2017-12-26 01:22:35 +01:00
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/no" />
2017-12-26 00:27:34 +01:00
2021-02-01 20:36:58 +01:00
</RadioGroup>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/overview_editquickwizard_usetrend"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<RadioGroup
android:id="@+id/use_trend"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="15dp">
<RadioButton
2017-12-26 01:22:35 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/yes" />
2017-12-26 00:27:34 +01:00
2021-02-01 20:36:58 +01:00
<RadioButton
android:layout_width="match_parent"
2017-12-26 01:22:35 +01:00
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/no" />
2017-12-26 00:27:34 +01:00
2021-02-01 20:36:58 +01:00
<RadioButton
2017-12-26 01:22:35 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/positiveonly" />
2017-12-26 00:27:34 +01:00
2021-02-01 20:36:58 +01:00
<RadioButton
android:layout_width="match_parent"
2017-12-26 01:22:35 +01:00
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/negativeonly" />
2017-12-26 00:27:34 +01:00
2021-02-01 20:36:58 +01:00
</RadioGroup>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/overview_editquickwizard_usesuperbolus"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<RadioGroup
android:id="@+id/use_super_bolus"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="15dp">
<RadioButton
2017-12-26 01:22:35 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/yes" />
2017-12-26 00:27:34 +01:00
2021-02-01 20:36:58 +01:00
<RadioButton
android:layout_width="match_parent"
2017-12-26 01:22:35 +01:00
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/no" />
2017-12-26 00:27:34 +01:00
2021-02-01 20:36:58 +01:00
</RadioGroup>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/overview_editquickwizard_usetemptarget"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<RadioGroup
android:id="@+id/use_temp_target"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="15dp">
<RadioButton
2017-12-26 01:22:35 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/yes" />
2017-12-26 00:27:34 +01:00
2021-02-01 20:36:58 +01:00
<RadioButton
android:layout_width="match_parent"
2017-12-26 01:22:35 +01:00
android:layout_height="wrap_content"
2021-02-01 20:36:58 +01:00
android:text="@string/no" />
2017-12-26 00:27:34 +01:00
2021-02-01 20:36:58 +01:00
</RadioGroup>
2017-12-26 00:27:34 +01:00
2016-10-20 23:50:31 +02:00
2021-02-02 20:25:15 +01:00
<include
android:id="@+id/okcancel"
layout="@layout/okcancel" />
2021-02-01 20:36:58 +01:00
</LinearLayout>
2016-10-20 23:50:31 +02:00
2021-02-01 20:36:58 +01:00
</ScrollView>