125 lines
4.8 KiB
XML
125 lines
4.8 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
||
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
xmlns:tools="http://schemas.android.com/tools"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
tools:context="info.nightscout.androidaps.plugins.Overview.Dialogs.NewCarbsDialog">
|
||
|
|
||
|
<ScrollView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent">
|
||
|
|
||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:focusableInTouchMode="true"
|
||
|
android:orientation="vertical"
|
||
|
android:padding="10dp">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_horizontal"
|
||
|
android:text="@string/carbs"
|
||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||
|
android:textColor="@color/colorCarbsButton" />
|
||
|
|
||
|
<ImageView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:padding="5dp"
|
||
|
android:src="@drawable/icon_cp_bolus_carbs" />
|
||
|
|
||
|
<CheckBox
|
||
|
android:id="@+id/newcarbs_activity_tt"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_marginTop="5dp"
|
||
|
android:text="Start activity TT"/>
|
||
|
|
||
|
<CheckBox
|
||
|
android:id="@+id/newcarbs_suspend_loop"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_marginBottom="5dp"
|
||
|
android:text="Suspend loop for 30 min"/>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:padding="5dp"
|
||
|
android:layout_gravity="center_horizontal">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/newcarbs_eventdate"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_horizontal"
|
||
|
android:padding="5dp"
|
||
|
android:text="2017/05/05" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/newcarb_eventtime"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_horizontal"
|
||
|
android:padding="5dp"
|
||
|
android:text="08:20pm" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
<EditText
|
||
|
android:id="@+id/newcarb_food"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_horizontal"
|
||
|
android:width="180dp"
|
||
|
android:inputType="text|textCapWords"
|
||
|
android:visibility="gone"/>
|
||
|
|
||
|
<info.nightscout.utils.NumberPicker
|
||
|
android:id="@+id/newcarb_carbsamount"
|
||
|
android:layout_width="130dp"
|
||
|
android:layout_height="40dp"
|
||
|
android:layout_gravity="end"
|
||
|
android:layout_marginBottom="10dp"
|
||
|
android:layout_marginLeft="30dp"
|
||
|
android:layout_marginRight="30dp"
|
||
|
android:layout_marginTop="10dp" />
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:orientation="horizontal"
|
||
|
android:layout_marginBottom="5dp">
|
||
|
|
||
|
<Button
|
||
|
android:id="@+id/newcarbs_plus1"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_weight="1"
|
||
|
android:text="+5" />
|
||
|
|
||
|
<Button
|
||
|
android:id="@+id/newcarbs_plus2"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_weight="1"
|
||
|
android:text="+10" />
|
||
|
|
||
|
<Button
|
||
|
android:id="@+id/newcarbs_plus3"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_weight="1"
|
||
|
android:text="+20" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<include layout="@layout/mdtp_done_button" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
</ScrollView>
|
||
|
</FrameLayout>
|