AndroidAPS/app/src/main/res/xml/pref_openapsma.xml

53 lines
2.2 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-04-24 00:11:52 +02:00
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:validate="http://schemas.android.com/apk/res-auto">
<PreferenceCategory
android:key="openaps"
android:title="@string/openapsma">
2016-08-09 15:40:12 +02:00
<EditTextPreference
android:defaultValue="1"
2018-04-24 00:11:52 +02:00
android:dialogMessage="@string/openapsma_maxbasal_summary"
2018-03-20 22:09:22 +01:00
android:key="@string/key_openapsma_max_basal"
android:numeric="decimal"
android:title="@string/openapsma_maxbasal_title" />
2018-04-24 00:11:52 +02:00
<EditTextPreference
android:defaultValue="1.5"
2018-04-24 00:11:52 +02:00
android:dialogMessage="@string/openapsma_maxiob_summary"
2018-03-20 22:09:22 +01:00
android:key="@string/key_openapsma_max_iob"
android:numeric="decimal"
android:title="@string/openapsma_maxiob_title" />
2018-04-24 00:11:52 +02:00
<PreferenceScreen android:title="@string/advancedsettings_title">
<Preference android:summary="@string/openapsama_link_to_preferncejson_doc_txt">
<intent
android:action="android.intent.action.VIEW"
android:data="@string/openapsama_link_to_preferncejson_doc" />
</Preference>
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_always_use_shortavg"
android:summary="@string/always_use_shortavg_summary"
android:title="@string/always_use_shortavg" />
<com.andreabaccega.widget.ValidatingEditTextPreference
android:defaultValue="2"
android:dialogMessage="@string/openapsama_bolussnooze_dia_divisor_summary"
android:digits="0123456789.,"
android:inputType="numberDecimal"
android:key="@string/key_openapsama_bolussnooze_dia_divisor"
android:maxLines="20"
android:selectAllOnFocus="true"
android:singleLine="true"
android:title="@string/openapsama_bolussnooze_dia_divisor"
validate:maxNumber="10"
validate:minNumber="1"
validate:testType="floatNumericRange" />
</PreferenceScreen>
</PreferenceCategory>
2018-04-24 00:11:52 +02:00
</PreferenceScreen>