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

156 lines
6.3 KiB
XML
Raw Normal View History

2017-02-17 13:18:36 +01:00
<?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">
2018-04-21 21:14:09 +02:00
<PreferenceCategory android:title="@string/nsclientinternal_title">
2017-02-17 13:18:36 +01:00
<com.andreabaccega.widget.ValidatingEditTextPreference
android:defaultValue="https://{YOUR-SITE}.azurewebsites.net/"
2017-06-15 21:33:45 +02:00
android:dialogMessage="@string/nsclientinternal_url_dialogmessage"
2017-02-17 13:18:36 +01:00
android:inputType="textUri"
2017-06-15 21:33:45 +02:00
android:key="@string/key_nsclientinternal_url"
android:selectAllOnFocus="true"
2017-02-17 13:18:36 +01:00
android:title="@string/nsclientinternal_url_title"
2017-06-15 21:33:45 +02:00
validate:testType="webUrl" />
2017-02-17 13:18:36 +01:00
<EditTextPreference
2017-06-15 21:33:45 +02:00
android:dialogMessage="@string/nsclientinternal_secret_dialogmessage"
android:dialogTitle="@string/nsclientinternal_secret_dialogtitle"
android:inputType="textPassword"
android:key="@string/key_nsclientinternal_api_secret"
android:title="@string/nsclientinternal_secret_title" />
2017-04-14 15:33:39 +02:00
<SwitchPreference
android:defaultValue="true"
android:key="@string/key_ns_logappstartedevent"
android:title="@string/ns_logappstartedevent" />
2017-06-15 21:33:45 +02:00
<PreferenceScreen android:title="@string/ns_alarmoptions">
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_nsalarm_urgent_high"
2018-04-21 20:46:55 +02:00
android:title="@string/nsalarm_urgenthigh" />
2017-06-15 21:33:45 +02:00
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_nsalarm_high"
2018-04-21 20:46:55 +02:00
android:title="@string/nsalarm_high" />
2017-06-15 21:33:45 +02:00
2018-04-21 20:46:55 +02:00
<SwitchPreference
2017-06-15 21:33:45 +02:00
android:defaultValue="false"
android:key="@string/key_nsalarm_low"
2018-04-21 20:46:55 +02:00
android:title="@string/nsalarm_low" />
2017-06-15 21:33:45 +02:00
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_nsalarm_urgent_low"
2018-04-21 20:46:55 +02:00
android:title="@string/nsalarm_urgentlow" />
2017-06-15 21:33:45 +02:00
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_nsalarm_staledata"
2018-04-21 20:46:55 +02:00
android:title="@string/nsalarm_staledata" />
2017-06-15 21:33:45 +02:00
<com.andreabaccega.widget.ValidatingEditTextPreference
android:defaultValue="16"
2018-04-21 20:46:55 +02:00
android:digits="0123456789"
2017-06-15 21:33:45 +02:00
android:inputType="number"
2018-04-21 20:46:55 +02:00
android:key="@string/key_nsalarm_staledatavalue"
2017-06-15 21:33:45 +02:00
android:maxLines="20"
2018-04-21 20:46:55 +02:00
android:selectAllOnFocus="true"
android:singleLine="true"
2017-06-15 21:33:45 +02:00
android:title="@string/nsalarm_staledatavalue_label"
2018-04-21 20:46:55 +02:00
validate:maxNumber="120"
validate:minNumber="15"
validate:testType="numericRange" />
2017-06-15 21:33:45 +02:00
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_nsalarm_urgent_staledata"
2018-04-21 20:46:55 +02:00
android:title="@string/nsalarm_urgentstaledata" />
2017-06-15 21:33:45 +02:00
<com.andreabaccega.widget.ValidatingEditTextPreference
android:defaultValue="31"
2018-04-21 20:46:55 +02:00
android:digits="0123456789"
2017-06-15 21:33:45 +02:00
android:inputType="number"
2018-04-21 20:46:55 +02:00
android:key="@string/key_nsalarm_urgent_staledatavalue"
2017-06-15 21:33:45 +02:00
android:maxLines="20"
2018-04-21 20:46:55 +02:00
android:selectAllOnFocus="true"
android:singleLine="true"
2017-06-15 21:33:45 +02:00
android:title="@string/nsalarm_urgent_staledatavalue_label"
2018-04-21 20:46:55 +02:00
validate:maxNumber="180"
validate:minNumber="30"
validate:testType="numericRange" />
</PreferenceScreen>
2018-04-22 18:24:06 +02:00
<PreferenceScreen android:title="@string/connectionsettings_title">
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_ns_wifionly"
android:disableDependentsState="true"
2018-04-22 18:24:06 +02:00
android:title="@string/ns_wifionly" />
<EditTextPreference
android:dialogMessage="@string/ns_wifi_allowedssids"
android:inputType="text"
android:key="@string/key_ns_wifi_ssids"
android:title="@string/ns_wifi_ssids" />
<SwitchPreference
android:defaultValue="true"
android:dependency="@string/key_ns_wifionly"
2018-04-22 18:24:06 +02:00
android:key="@string/key_ns_allowroaming"
android:title="@string/ns_allowroaming" />
2018-04-29 22:49:43 +02:00
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_ns_chargingonly"
android:title="@string/ns_chargingonly" />
2018-04-22 18:24:06 +02:00
</PreferenceScreen>
<PreferenceScreen android:title="@string/advancedsettings_title">
2018-04-21 20:46:55 +02:00
<SwitchPreference
android:defaultValue="true"
android:key="@string/key_ns_autobackfill"
2018-05-02 17:05:20 +02:00
android:title="@string/ns_autobackfill_title"
android:summary="@string/ns_autobackfill_summary" />
2018-04-21 20:46:55 +02:00
<SwitchPreference
android:defaultValue="true"
android:key="@string/key_ns_create_announcements_from_errors"
android:summary="@string/ns_create_announcements_from_errors_summary"
android:title="@string/ns_create_announcements_from_errors_title" />
<SwitchPreference
android:defaultValue="false"
2018-05-20 10:56:32 +02:00
android:key="@string/key_nsclient_localbroadcasts"
2018-04-21 20:46:55 +02:00
android:summary="@string/ns_localbroadcasts"
android:title="@string/ns_localbroadcasts_title" />
2017-06-15 21:33:45 +02:00
2018-04-21 21:14:09 +02:00
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_ns_upload_only"
android:summary="@string/ns_upload_only_summary"
android:title="@string/ns_upload_only" />
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_ns_noupload"
android:summary="@string/ns_noupload_summary"
android:title="@string/ns_noupload" />
<SwitchPreference
android:defaultValue="false"
android:key="ns_sync_use_absolute"
android:title="@string/ns_sync_use_absolute_title" />
2017-06-15 21:33:45 +02:00
</PreferenceScreen>
2017-02-17 13:18:36 +01:00
</PreferenceCategory>
</PreferenceScreen>