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

92 lines
3.5 KiB
XML
Raw Normal View History

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"
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"
2019-12-21 15:26:41 +01:00
android:background="@color/dialog_title_background"
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
android:id="@+id/actions_care_icon"
2017-06-29 01:37:58 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-12-20 16:33:01 +01:00
android:contentDescription="@string/overview_calibration"
android:src="@drawable/icon_calibration" />
<TextView
android:id="@+id/actions_care_title"
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-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
android:id="@+id/action_care_bg_layout"
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
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"
android:textAppearance="@android:style/TextAppearance.Material.Small"
android:textStyle="bold" />
2017-06-29 01:37:58 +02:00
2019-02-26 20:38:27 +01:00
<info.nightscout.androidaps.utils.NumberPicker
2017-06-29 01:37:58 +02:00
android:id="@+id/overview_calibration_bg"
android:layout_width="130dp"
2019-12-20 16:33:01 +01:00
android:layout_height="40dp" />
2017-06-29 01:37:58 +02:00
2019-12-20 16:33:01 +01:00
<TextView
android:id="@+id/overview_calibration_units"
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
2019-12-20 16:33:01 +01:00
<include layout="@layout/okcancel" />
</LinearLayout>
2017-06-29 01:37:58 +02:00
2019-12-20 16:33:01 +01:00
</ScrollView>