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

198 lines
8.3 KiB
XML
Raw Normal View History

2016-12-31 20:10:36 +01:00
<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"
2017-04-21 12:15:08 +02:00
tools:context=".plugins.ProfileLocal.LocalProfileFragment">
2016-12-31 20:10:36 +01:00
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2018-01-21 13:37:38 +01:00
<TextView
android:id="@+id/invalidprofile"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="@string/invalidprofile"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@android:color/holo_red_light"
android:textStyle="bold" />
2016-12-31 20:10:36 +01:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-01-29 20:19:02 +01:00
android:background="@color/linearBlockBackground"
2017-10-11 20:19:42 +02:00
android:layout_marginLeft="10px"
2016-12-31 20:10:36 +01:00
android:text="@string/units"
2017-01-29 20:19:02 +01:00
android:textAppearance="?android:attr/textAppearanceMedium" />
2016-12-31 20:10:36 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-10-02 19:57:41 +02:00
android:gravity="center_horizontal"
2016-12-31 20:10:36 +01:00
android:orientation="horizontal">
<RadioButton
android:id="@+id/localprofile_mgdl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/mgdl" />
<RadioButton
android:id="@+id/localprofile_mmol"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/mmol" />
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-01-29 20:19:02 +01:00
android:background="@color/linearBlockBackground"
2017-10-11 20:19:42 +02:00
android:layout_marginLeft="10px"
2016-12-31 20:10:36 +01:00
android:text="@string/dia"
2017-01-29 20:19:02 +01:00
android:textAppearance="?android:attr/textAppearanceMedium" />
2016-12-31 20:10:36 +01:00
2017-10-11 20:19:42 +02:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="horizontal"
android:paddingTop="5dp"
android:textAppearance="?android:attr/textAppearanceSmall">
<!-- dummy to align with TimeListEdits added dynamically -->
<Spinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginRight="10dp"
android:minWidth="80dp"
android:visibility="invisible"/>
<info.nightscout.utils.NumberPicker
android:id="@+id/localprofile_dia"
android:layout_width="130dp"
android:layout_height="40dp"
android:layout_marginRight="5dp"
android:layout_marginBottom="10dp"/>
<!-- dummy to align with TimeListEdits added dynamically -->
<ImageView
android:id="@+id/timelistedit_add"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="15dp"
android:src="@drawable/add"
android:visibility="invisible"/>
<!-- dummy to align with TimeListEdits added dynamically -->
<ImageView
android:id="@+id/timelistedit_remove"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="15dp"
android:src="@drawable/remove"
android:visibility="invisible"/>
</LinearLayout>
2016-12-31 20:10:36 +01:00
<LinearLayout
2017-01-29 20:19:02 +01:00
android:id="@+id/localprofile_ic"
2016-12-31 20:10:36 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-10-04 23:24:56 +02:00
android:layout_marginBottom="10dp"
2017-01-29 20:19:02 +01:00
android:orientation="vertical" />
2016-12-31 20:10:36 +01:00
<LinearLayout
2017-01-29 20:19:02 +01:00
android:id="@+id/localprofile_isf"
2016-12-31 20:10:36 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-10-04 23:24:56 +02:00
android:layout_marginBottom="10dp"
2017-01-29 20:19:02 +01:00
android:orientation="vertical" />
2016-12-31 20:10:36 +01:00
<LinearLayout
2017-01-29 20:19:02 +01:00
android:id="@+id/localprofile_basal"
2016-12-31 20:10:36 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-10-04 23:24:56 +02:00
android:layout_marginBottom="10dp"
2017-01-29 20:19:02 +01:00
android:orientation="vertical" />
2016-12-31 20:10:36 +01:00
<LinearLayout
2017-01-29 20:19:02 +01:00
android:id="@+id/localprofile_target"
2016-12-31 20:10:36 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-10-04 23:24:56 +02:00
android:layout_marginBottom="10dp"
2017-01-29 20:19:02 +01:00
android:orientation="vertical">
2016-12-31 20:10:36 +01:00
</LinearLayout>
<Button
android:id="@+id/localprofile_profileswitch"
style="?android:attr/buttonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="3dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="3dp"
android:layout_weight="1"
android:paddingLeft="10dp"
android:paddingRight="10dp"
2017-10-04 23:33:02 +02:00
android:text="@string/activate_profile"
2018-04-17 20:37:28 +02:00
android:drawableLeft="@drawable/icon_local_activate" />
2016-12-31 20:10:36 +01:00
2018-04-03 18:33:13 +02:00
<LinearLayout
2018-04-03 14:34:15 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
2018-04-03 18:33:13 +02:00
android:orientation="horizontal">
<Button
android:id="@+id/localprofile_reset"
style="?android:attr/buttonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="3dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="3dp"
android:layout_weight="1"
android:paddingLeft="10dp"
android:paddingRight="10dp"
2018-04-03 18:37:34 +02:00
android:text="@string/reset"
2018-04-17 20:37:28 +02:00
android:drawableLeft="@drawable/icon_local_reset" />
2018-04-03 18:33:13 +02:00
<Button
android:id="@+id/localprofile_save"
style="?android:attr/buttonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="3dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="3dp"
android:layout_weight="1"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:text="@string/save"
2018-04-17 20:37:28 +02:00
android:drawableLeft="@drawable/icon_local_save" />
2018-04-03 18:33:13 +02:00
</LinearLayout>
2016-12-31 20:10:36 +01:00
</LinearLayout>
</ScrollView>
</FrameLayout>