AndroidAPS/app/src/main/res/xml/pref_openapsma.xml
2018-04-24 00:11:52 +02:00

53 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<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">
<EditTextPreference
android:defaultValue="1"
android:dialogMessage="@string/openapsma_maxbasal_summary"
android:key="@string/key_openapsma_max_basal"
android:numeric="decimal"
android:title="@string/openapsma_maxbasal_title" />
<EditTextPreference
android:defaultValue="1.5"
android:dialogMessage="@string/openapsma_maxiob_summary"
android:key="@string/key_openapsma_max_iob"
android:numeric="decimal"
android:title="@string/openapsma_maxiob_title" />
<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>
</PreferenceScreen>