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

46 lines
2.1 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
validate:testType="webUrl"
android:defaultValue="https://{YOUR-SITE}.azurewebsites.net/"
android:selectAllOnFocus="true"
android:inputType="textUri"
android:title="@string/nsclientinternal_url_title"
android:dialogMessage="@string/nsclientinternal_url_dialogmessage"
android:key="nsclientinternal_url" />
<EditTextPreference
android:title="@string/nsclientinternal_secret_title"
android:key="nsclientinternal_api_secret"
android:dialogTitle="@string/nsclientinternal_secret_dialogtitle"
android:dialogMessage="@string/nsclientinternal_secret_dialogmessage"
android:defaultValue=""
android:inputType="textPassword">
</EditTextPreference>
<EditTextPreference
android:title="@string/nsclientinternal_devicename_title"
android:key="nsclientinternal_devicename"
android:dialogTitle="@string/nsclientinternal_devicename_dialogtitle"
android:dialogMessage="@string/nsclientinternal_devicename_dialogmessage"
android:defaultValue=""
android:inputType="text">
</EditTextPreference>
<com.andreabaccega.widget.ValidatingEditTextPreference
validate:testType="numericRange"
validate:minNumber="1"
validate:maxNumber="48"
android:digits="0123456789"
android:defaultValue="24"
android:selectAllOnFocus="true"
android:inputType="number"
android:maxLines="20"
android:title="@string/nsclientinternal_hours"
android:dialogMessage="@string/nsclientinternal_hours_message"
android:key="nsclientinternal_hours" />
</PreferenceCategory>
</PreferenceScreen>