188 lines
7.4 KiB
XML
188 lines
7.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".plugins.general.overview.dialogs.NewInsulinDialog">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:focusableInTouchMode="true"
|
|
android:orientation="vertical"
|
|
android:padding="10dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/icon_bolus" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:text="@string/overview_insulin_label"
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
android:textColor="@color/colorInsulinButton" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_gravity="center_horizontal">
|
|
|
|
<CheckBox
|
|
android:id="@+id/newinsulin_start_eating_soon_tt"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="5dp"
|
|
android:text="@string/start_eating_soon_tt" />
|
|
|
|
<CheckBox
|
|
android:id="@+id/newinsulin_record_only"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:text="@string/do_not_bolus_record_only" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2dip"
|
|
android:layout_marginBottom="5dp"
|
|
android:layout_marginTop="5dp"
|
|
android:background="@color/listdelimiter" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/newinsulin_time_layout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingBottom="5dp"
|
|
android:paddingTop="5dp">
|
|
|
|
<TextView
|
|
android:layout_width="60dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:textStyle="bold"
|
|
android:text="@string/time" />
|
|
|
|
<info.nightscout.androidaps.utils.NumberPicker
|
|
android:id="@+id/newinsulin_time"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="40dp"
|
|
android:layout_gravity="end"
|
|
android:paddingLeft="5dp"
|
|
android:paddingRight="5dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/shortminute" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingBottom="5dp"
|
|
android:paddingTop="5dp">
|
|
|
|
<TextView
|
|
android:layout_width="60dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:textStyle="bold"
|
|
android:text="@string/overview_insulin_label" />
|
|
|
|
<info.nightscout.androidaps.utils.NumberPicker
|
|
android:id="@+id/newinsulin_amount"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="40dp"
|
|
android:layout_gravity="end"
|
|
android:paddingLeft="5dp"
|
|
android:paddingRight="5dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginRight="5dp"
|
|
android:text="@string/insulin_unit_shortname" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginBottom="5dp"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/newinsulin_plus05"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:text="+0.5" />
|
|
|
|
<Button
|
|
android:id="@+id/newinsulin_plus10"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:text="+1.0" />
|
|
|
|
<Button
|
|
android:id="@+id/newinsulin_plus20"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:text="+2.0" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/newinsulin_notes_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginBottom="5dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="60dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:width="60dp"
|
|
android:padding="2dp"
|
|
android:text="@string/careportal_newnstreatment_notes_label"
|
|
android:textAppearance="@android:style/TextAppearance.Material.Small"
|
|
android:textStyle="bold" />
|
|
|
|
<EditText
|
|
android:id="@+id/newinsulin_notes"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="text|textCapSentences" />
|
|
|
|
</LinearLayout>
|
|
|
|
<include layout="@layout/mdtp_done_button" />
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
</FrameLayout>
|