2017-02-10 16:53:39 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-12-20 16:33:01 +01:00
|
|
|
<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"
|
2017-04-30 20:54:35 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-02-10 16:53:39 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-12-20 18:55:54 +01:00
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
android:minWidth="300dp"
|
|
|
|
android:orientation="vertical"
|
|
|
|
tools:context=".dialogs.CalibrationDialog">
|
2017-02-10 16:53:39 +01:00
|
|
|
|
2019-12-20 16:33:01 +01:00
|
|
|
<LinearLayout
|
2017-02-10 16:53:39 +01:00
|
|
|
android:layout_width="match_parent"
|
2019-12-20 16:33:01 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
2017-06-29 01:37:58 +02:00
|
|
|
|
2019-12-20 16:33:01 +01:00
|
|
|
|
2019-12-20 18:55:54 +01:00
|
|
|
<RelativeLayout
|
2019-12-20 16:33:01 +01:00
|
|
|
android:layout_width="match_parent"
|
2018-05-13 12:48:30 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-12-20 16:33:01 +01:00
|
|
|
android:layout_gravity="center"
|
2022-03-15 13:24:51 +01:00
|
|
|
android:background="?attr/dialogTitleBackground"
|
2019-12-20 16:33:01 +01:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="5dp">
|
2017-02-10 16:53:39 +01:00
|
|
|
|
2019-12-20 16:33:01 +01:00
|
|
|
<ImageView
|
2017-06-29 01:37:58 +02:00
|
|
|
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_calibration" />
|
2019-12-20 16:33:01 +01:00
|
|
|
|
|
|
|
<TextView
|
2021-01-21 16:45:54 +01:00
|
|
|
android:id="@+id/title"
|
2019-12-20 16:33:01 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-12-20 18:55:54 +01:00
|
|
|
android:layout_centerInParent="true"
|
2019-12-20 16:33:01 +01:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
2018-05-13 12:48:30 +02:00
|
|
|
android:text="@string/overview_calibration"
|
2019-12-20 16:33:01 +01:00
|
|
|
android:textAlignment="center"
|
2017-06-29 01:37:58 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
2019-12-21 23:17:20 +01:00
|
|
|
|
2019-12-20 18:55:54 +01:00
|
|
|
</RelativeLayout>
|
2017-06-29 01:37:58 +02:00
|
|
|
|
2019-12-20 16:33:01 +01:00
|
|
|
<LinearLayout
|
2019-12-20 18:55:54 +01:00
|
|
|
android:id="@+id/spacer"
|
2019-12-20 16:33:01 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
2019-12-20 18:55:54 +01:00
|
|
|
android:padding="5dp" />
|
2019-12-20 16:33:01 +01:00
|
|
|
|
|
|
|
<LinearLayout
|
2021-01-21 16:45:54 +01:00
|
|
|
android:id="@+id/bg_layout"
|
2019-12-20 16:33:01 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingTop="10dp">
|
2018-05-13 12:48:30 +02:00
|
|
|
|
2017-06-29 01:37:58 +02:00
|
|
|
<TextView
|
2022-02-12 08:26:07 +01:00
|
|
|
android:id="@+id/bg_label"
|
2017-06-29 01:37:58 +02:00
|
|
|
android:layout_width="wrap_content"
|
2017-04-30 20:54:35 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-06-29 01:37:58 +02:00
|
|
|
android:layout_gravity="center_horizontal"
|
2019-12-20 16:33:01 +01:00
|
|
|
android:width="120dp"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:text="@string/treatments_wizard_bg_label"
|
2020-10-19 19:24:33 +02:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
2019-12-20 16:33:01 +01:00
|
|
|
android:textStyle="bold" />
|
2017-06-29 01:37:58 +02:00
|
|
|
|
2020-07-27 21:11:57 +02:00
|
|
|
<info.nightscout.androidaps.utils.ui.NumberPicker
|
2021-01-21 16:45:54 +01:00
|
|
|
android:id="@+id/bg"
|
2017-06-29 01:37:58 +02:00
|
|
|
android:layout_width="130dp"
|
2022-02-12 08:26:07 +01:00
|
|
|
android:layout_height="40dp"
|
|
|
|
app:customContentDescription="@string/treatments_wizard_bg_label" />
|
2017-06-29 01:37:58 +02:00
|
|
|
|
2019-12-20 16:33:01 +01:00
|
|
|
<TextView
|
2021-01-21 16:45:54 +01:00
|
|
|
android:id="@+id/units"
|
2019-12-20 16:33:01 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="start"
|
|
|
|
android:minWidth="45dp"
|
|
|
|
android:paddingStart="5dp"
|
|
|
|
android:paddingEnd="5dp"
|
|
|
|
android:text="@string/mgdl"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
2017-04-30 20:54:35 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
2017-06-29 01:37:58 +02:00
|
|
|
|
2021-01-21 16:45:54 +01:00
|
|
|
<include
|
|
|
|
android:id="@+id/okcancel"
|
|
|
|
layout="@layout/okcancel" />
|
2019-12-20 16:33:01 +01:00
|
|
|
|
|
|
|
</LinearLayout>
|
2017-06-29 01:37:58 +02:00
|
|
|
|
2019-12-20 16:33:01 +01:00
|
|
|
</ScrollView>
|