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

130 lines
6.7 KiB
XML
Raw Normal View History

2017-01-24 10:28:42 +01:00
<?xml version="1.0" encoding="utf-8"?>
2017-01-26 12:07:25 +01:00
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:validate="http://schemas.android.com/apk/res-auto">
2017-01-24 10:28:42 +01:00
<PreferenceCategory
android:key="advanced"
android:title="@string/advancedsettings_title">
2017-08-15 23:13:37 +02:00
<PreferenceScreen android:title="@string/advancedsettings_title">
<PreferenceCategory android:title="@string/nightscout">
2017-01-24 10:28:42 +01:00
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_ns_upload_only"
2017-08-15 23:13:37 +02:00
android:summary="@string/ns_upload_only_summary"
android:title="@string/ns_upload_only" />
2017-01-24 10:28:42 +01:00
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_ns_noupload"
2017-08-15 23:13:37 +02:00
android:summary="@string/ns_noupload_summary"
android:title="@string/ns_noupload" />
<SwitchPreference
android:defaultValue="false"
2017-01-24 10:28:42 +01:00
android:key="ns_sync_use_absolute"
android:title="@string/ns_sync_use_absolute_title" />
</PreferenceCategory>
2017-08-15 23:13:37 +02:00
<PreferenceCategory android:title="@string/superbolus">
2017-04-22 11:08:57 +02:00
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_usesuperbolus"
2017-08-15 23:13:37 +02:00
android:summary="@string/enablesuperbolus_summary"
android:title="@string/enablesuperbolus" />
2017-04-22 11:08:57 +02:00
</PreferenceCategory>
2017-08-15 23:13:37 +02:00
<PreferenceCategory android:title="@string/openapsma">
2017-01-24 10:28:42 +01:00
<SwitchPreference
android:defaultValue="false"
android:key="always_use_shortavg"
2017-08-15 23:13:37 +02:00
android:summary="@string/always_use_shortavg_summary"
android:title="@string/always_use_shortavg" />
2017-01-24 10:28:42 +01:00
</PreferenceCategory>
2017-08-15 23:13:37 +02:00
<PreferenceCategory android:title="OpenAPS preferences.json">
<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>
2017-01-26 12:07:25 +01:00
<com.andreabaccega.widget.ValidatingEditTextPreference
android:defaultValue="3"
2017-08-15 23:13:37 +02:00
android:dialogMessage="@string/openapsama_max_daily_safety_multiplier_summary"
android:digits="0123456789.,"
android:inputType="number"
2017-08-15 23:13:37 +02:00
android:key="openapsama_max_daily_safety_multiplier"
2017-01-25 20:20:39 +01:00
android:maxLines="20"
2017-08-15 23:13:37 +02:00
android:selectAllOnFocus="true"
android:title="@string/openapsama_max_daily_safety_multiplier"
2017-01-26 12:07:25 +01:00
validate:maxNumber="10"
2017-08-15 23:13:37 +02:00
validate:minNumber="1"
validate:testType="numericRange" />
<com.andreabaccega.widget.ValidatingEditTextPreference
android:defaultValue="4"
2017-08-15 23:13:37 +02:00
android:dialogMessage="@string/openapsama_current_basal_safety_multiplier_summary"
android:digits="0123456789.,"
android:inputType="number"
2017-08-15 23:13:37 +02:00
android:key="openapsama_current_basal_safety_multiplier"
2017-01-25 20:20:39 +01:00
android:maxLines="20"
2017-08-15 23:13:37 +02:00
android:selectAllOnFocus="true"
android:singleLine="true"
android:title="@string/openapsama_current_basal_safety_multiplier"
validate:floatmaxNumber="10"
validate:floatminNumber="1"
validate:testType="floatNumericRange" />
2017-01-26 12:07:25 +01:00
<com.andreabaccega.widget.ValidatingEditTextPreference
android:defaultValue="1.2"
2017-08-15 23:13:37 +02:00
android:dialogMessage="@string/openapsama_autosens_max_summary"
android:digits="0123456789.,"
android:inputType="numberDecimal"
2017-08-15 23:13:37 +02:00
android:key="openapsama_autosens_max"
2017-01-25 20:20:39 +01:00
android:maxLines="20"
2017-08-15 23:13:37 +02:00
android:selectAllOnFocus="true"
android:singleLine="true"
android:title="@string/openapsama_autosens_max"
2017-08-15 23:13:37 +02:00
validate:floatmaxNumber="3"
validate:floatminNumber="0.5"
validate:testType="floatNumericRange" />
2017-01-26 12:07:25 +01:00
<com.andreabaccega.widget.ValidatingEditTextPreference
android:defaultValue="0.7"
2017-08-15 23:13:37 +02:00
android:dialogMessage="@string/openapsama_autosens_min_summary"
android:inputType="numberDecimal"
2017-08-15 23:13:37 +02:00
android:key="openapsama_autosens_min"
2017-01-25 20:20:39 +01:00
android:maxLines="20"
2017-08-15 23:13:37 +02:00
android:selectAllOnFocus="true"
android:singleLine="true"
android:title="@string/openapsama_autosens_min"
2017-08-15 23:13:37 +02:00
validate:floatmaxNumber="1.0"
validate:floatminNumber="0.1"
validate:testType="floatNumericRange" />
2017-01-26 12:07:25 +01:00
<com.andreabaccega.widget.ValidatingEditTextPreference
android:defaultValue="2"
2017-08-15 23:13:37 +02:00
android:dialogMessage="@string/openapsama_bolussnooze_dia_divisor_summary"
android:digits="0123456789.,"
2017-06-29 19:38:38 +02:00
android:inputType="numberDecimal"
2017-08-15 23:13:37 +02:00
android:key="openapsama_bolussnooze_dia_divisor"
2017-01-25 20:20:39 +01:00
android:maxLines="20"
2017-08-15 23:13:37 +02:00
android:selectAllOnFocus="true"
android:singleLine="true"
android:title="@string/openapsama_bolussnooze_dia_divisor"
2017-08-15 23:13:37 +02:00
validate:maxNumber="10"
validate:minNumber="1"
validate:testType="floatNumericRange" />
</PreferenceCategory>
2017-12-01 13:57:53 +01:00
<PreferenceCategory
android:title="@string/bluetooth">
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_btwatchdog"
android:title="@string/btwatchdog_title"
android:summary="@string/btwatchdog_summary"/>
</PreferenceCategory>
2018-02-22 13:30:36 +01:00
<PreferenceCategory
android:title="@string/data_choices">
<SwitchPreference
android:defaultValue="true"
android:key="enable_fabric"
android:title="@string/fabric_upload"
android:summary="@string/allow_automated_crash_reporting"/>
</PreferenceCategory>
2017-01-24 10:28:42 +01:00
</PreferenceScreen>
</PreferenceCategory>
</PreferenceScreen>