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

407 lines
18 KiB
XML
Raw Normal View History

2018-05-31 13:45:26 +02: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"
2018-06-06 17:58:59 +02:00
android:focusable="true"
android:focusableInTouchMode="true"
2019-02-26 20:38:27 +01:00
tools:context=".plugins.pump.danaR.activities.DanaRUserOptionsActivity">
2018-05-31 13:45:26 +02:00
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
2018-05-31 15:47:58 +02:00
android:id="@+id/danar_user_options_view"
2018-05-31 13:45:26 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/danar_buttons"
android:fillViewport="true">
<LinearLayout
2018-05-31 15:47:58 +02:00
android:id="@+id/danar_user_options_top"
2018-05-31 13:45:26 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2018-06-06 17:58:59 +02:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dp"
android:text="@string/danar_pump_settings"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.AppCompat.Large" />
2018-05-31 13:45:26 +02:00
<LinearLayout
android:id="@+id/overview_pumpstatuslayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingBottom="5dp"
android:paddingTop="2dp"
android:visibility="gone">
<TextView
android:id="@+id/overview_pumpstatus"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:gravity="center_vertical|center_horizontal"
android:text="@string/initializing"
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-05-31 15:47:58 +02:00
android:layout_marginBottom="5dp"
android:layout_marginEnd="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="5dp"
android:layout_marginStart="20dp"
android:layout_marginTop="5dp"
2018-05-31 13:45:26 +02:00
android:orientation="horizontal">
<Switch
android:id="@+id/danar_timeformat"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:showText="true"
2018-05-31 15:47:58 +02:00
android:text="@string/danar_timedisplay"
2018-05-31 13:45:26 +02:00
android:textOff="12h"
android:textOn="24h" />
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-05-31 15:47:58 +02:00
android:layout_marginBottom="5dp"
android:layout_marginEnd="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="5dp"
android:layout_marginStart="20dp"
android:layout_marginTop="5dp"
2018-05-31 13:45:26 +02:00
android:orientation="horizontal">
<Switch
android:id="@+id/danar_buttonscroll"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-05-31 15:47:58 +02:00
android:layout_weight="1"
android:text="@string/danar_buttonscroll"
android:textOff="@string/option_off"
android:textOn="@string/option_on" />
2018-05-31 13:45:26 +02:00
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-05-31 15:47:58 +02:00
android:layout_marginBottom="5dp"
android:layout_marginEnd="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="5dp"
android:layout_marginStart="20dp"
android:layout_marginTop="5dp"
2018-05-31 13:45:26 +02:00
android:orientation="horizontal">
<Switch
android:id="@+id/danar_beep"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-05-31 15:47:58 +02:00
android:layout_weight="1"
android:text="@string/danar_beep"
android:textOff="@string/option_off"
android:textOn="@string/option_on" />
2018-05-31 13:45:26 +02:00
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-05-31 15:47:58 +02:00
android:layout_marginBottom="5dp"
android:layout_marginEnd="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="5dp"
android:layout_marginStart="20dp"
android:layout_marginTop="5dp"
2018-05-31 13:45:26 +02:00
android:orientation="horizontal">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
2018-05-31 15:47:58 +02:00
android:gravity="left"
2018-05-31 13:45:26 +02:00
android:paddingRight="5dp"
android:text="@string/danar_pumpalarm"
android:textSize="14sp" />
<RadioGroup
2018-05-31 15:47:58 +02:00
android:id="@+id/danar_pumpalarm"
2018-06-06 17:58:59 +02:00
android:layout_width="wrap_content"
2018-05-31 13:45:26 +02:00
android:layout_height="wrap_content"
2018-05-31 15:47:58 +02:00
android:checkedButton="@+id/danar_pumpalarm_sound">
2018-05-31 13:45:26 +02:00
<RadioButton
android:id="@+id/danar_pumpalarm_sound"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/danar_pumpalarm_sound" />
<RadioButton
android:id="@+id/danar_pumpalarm_vibrate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/danar_pumpalarm_vibrate" />
<RadioButton
android:id="@+id/danar_pumpalarm_both"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/danar_pumpalarm_both" />
</RadioGroup>
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-05-31 15:47:58 +02:00
android:layout_marginBottom="5dp"
android:layout_marginEnd="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="5dp"
android:layout_marginStart="20dp"
android:layout_marginTop="5dp"
2018-06-05 11:19:47 +02:00
android:gravity="center"
2018-05-31 13:45:26 +02:00
android:orientation="horizontal">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
2018-05-31 15:47:58 +02:00
android:gravity="top"
2018-05-31 13:45:26 +02:00
android:paddingRight="5dp"
android:text="@string/danar_screentimeout"
android:textSize="14sp" />
2019-02-26 20:38:27 +01:00
<info.nightscout.androidaps.utils.NumberPicker
2018-05-31 13:45:26 +02:00
android:id="@+id/danar_screentimeout"
2018-06-04 09:23:01 +02:00
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="end"
android:paddingLeft="5dp"
android:paddingRight="5dp" />
2018-05-31 13:45:26 +02:00
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-05-31 15:47:58 +02:00
android:layout_marginBottom="5dp"
android:layout_marginEnd="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="5dp"
android:layout_marginStart="20dp"
android:layout_marginTop="5dp"
2018-06-05 11:19:47 +02:00
android:gravity="center"
2018-05-31 13:45:26 +02:00
android:orientation="horizontal">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
2018-05-31 15:47:58 +02:00
android:gravity="top"
2018-05-31 13:45:26 +02:00
android:paddingRight="5dp"
android:text="@string/danar_backlight"
android:textSize="14sp" />
2019-02-26 20:38:27 +01:00
<info.nightscout.androidaps.utils.NumberPicker
2018-05-31 13:45:26 +02:00
android:id="@+id/danar_backlight"
2018-06-04 09:23:01 +02:00
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="end"
android:paddingLeft="5dp"
android:paddingRight="5dp" />
2018-05-31 13:45:26 +02:00
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-05-31 15:47:58 +02:00
android:layout_marginBottom="5dp"
android:layout_marginEnd="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="5dp"
android:layout_marginStart="20dp"
android:layout_marginTop="5dp"
2018-05-31 13:45:26 +02:00
android:orientation="horizontal">
<Switch
android:id="@+id/danar_units"
2018-05-31 15:47:58 +02:00
android:layout_width="fill_parent"
2018-05-31 13:45:26 +02:00
android:layout_height="wrap_content"
android:layout_weight="1"
2018-05-31 15:47:58 +02:00
android:showText="true"
android:splitTrack="false"
android:text="@string/danar_glucoseunits"
android:textOff="@string/mgdl"
2018-05-31 13:45:26 +02:00
android:textOn="@string/mmol" />
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-05-31 15:47:58 +02:00
android:layout_marginBottom="5dp"
android:layout_marginEnd="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="5dp"
android:layout_marginStart="20dp"
android:layout_marginTop="5dp"
2018-06-05 11:19:47 +02:00
android:gravity="center"
2018-05-31 13:45:26 +02:00
android:orientation="horizontal">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
2018-05-31 15:47:58 +02:00
android:gravity="left"
2018-05-31 13:45:26 +02:00
android:paddingRight="5dp"
android:text="@string/danar_shutdown"
android:textSize="14sp" />
2018-06-05 11:19:47 +02:00
2019-02-26 20:38:27 +01:00
<info.nightscout.androidaps.utils.NumberPicker
2018-05-31 13:45:26 +02:00
android:id="@+id/danar_shutdown"
2018-06-04 09:23:01 +02:00
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="end"
android:paddingLeft="5dp"
android:paddingRight="5dp" />
2018-05-31 13:45:26 +02:00
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-05-31 15:47:58 +02:00
android:layout_marginBottom="5dp"
android:layout_marginEnd="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="5dp"
android:layout_marginStart="20dp"
android:layout_marginTop="5dp"
2018-06-05 11:19:47 +02:00
android:gravity="center"
2018-05-31 13:45:26 +02:00
android:orientation="horizontal">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
2018-05-31 15:47:58 +02:00
android:gravity="left"
2018-05-31 13:45:26 +02:00
android:paddingRight="5dp"
android:text="@string/danar_lowreservoir"
android:textSize="14sp" />
2019-02-26 20:38:27 +01:00
<info.nightscout.androidaps.utils.NumberPicker
2018-05-31 13:45:26 +02:00
android:id="@+id/danar_lowreservoir"
2018-06-04 09:23:01 +02:00
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="end"
android:paddingLeft="5dp"
android:paddingRight="5dp" />
2018-05-31 13:45:26 +02:00
</LinearLayout>
<Button
android:id="@+id/save_user_options"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-06-06 17:58:59 +02:00
android:layout_marginTop="10dp"
2018-05-31 13:45:26 +02:00
android:text="@string/danar_saveuseroptions" />
</LinearLayout>
</ScrollView>
</RelativeLayout>
</FrameLayout>