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

99 lines
4 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">
<PreferenceCategory
android:key="ns_api"
android:title="@string/nsclientinternal_title">
<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
android:defaultValue=""
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
<SwitchPreference
android:defaultValue="true"
android:key="@string/key_ns_localbroadcasts"
2017-07-18 22:18:10 +02:00
android:title="@string/ns_localbroadcasts_title"
android:summary="@string/ns_localbroadcasts"/>
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"
android:title="@string/nsalarm_urgenthigh"/>
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_nsalarm_high"
android:title="@string/nsalarm_high"/>
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_nsalarm_low"
android:title="@string/nsalarm_low"/>
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_nsalarm_urgent_low"
android:title="@string/nsalarm_urgentlow"/>
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_nsalarm_staledata"
android:title="@string/nsalarm_staledata"/>
<com.andreabaccega.widget.ValidatingEditTextPreference
validate:testType="numericRange"
validate:minNumber="15"
validate:maxNumber="120"
android:digits="0123456789"
android:defaultValue="16"
android:selectAllOnFocus="true"
android:singleLine="true"
android:inputType="number"
android:maxLines="20"
android:title="@string/nsalarm_staledatavalue_label"
android:key="@string/key_nsalarm_staledatavalue" />
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_nsalarm_urgent_staledata"
android:title="@string/nsalarm_urgentstaledata"/>
<com.andreabaccega.widget.ValidatingEditTextPreference
validate:testType="numericRange"
validate:minNumber="30"
validate:maxNumber="180"
android:digits="0123456789"
android:defaultValue="31"
android:selectAllOnFocus="true"
android:singleLine="true"
android:inputType="number"
android:maxLines="20"
android:title="@string/nsalarm_urgent_staledatavalue_label"
android:key="@string/key_nsalarm_urgent_staledatavalue" />
</PreferenceScreen>
2017-02-17 13:18:36 +01:00
</PreferenceCategory>
</PreferenceScreen>