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

31 lines
1.3 KiB
XML
Raw Normal View History

2018-07-25 22:00:58 +02:00
<?xml version="1.0" encoding="utf-8"?>
2020-01-09 21:41:02 +01:00
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:validate="http://schemas.android.com/apk/res-auto"
xmlns:app="http://schemas.android.com/apk/res-auto">
2018-07-25 22:00:58 +02:00
<PreferenceCategory
2021-02-15 19:36:29 +01:00
android:key="@string/key_maintenance_settings"
2020-01-09 21:41:02 +01:00
android:title="@string/maintenance_settings"
app:initialExpandedChildrenCount="0">
2018-07-25 22:00:58 +02:00
<info.nightscout.androidaps.utils.textValidator.ValidatingEditTextPreference
2018-07-25 22:00:58 +02:00
android:defaultValue="logs@androidaps.org"
2018-07-30 19:42:18 +02:00
android:dialogMessage="@string/maintenance_email"
2018-07-25 22:00:58 +02:00
android:inputType="textEmailAddress"
android:key="@string/key_maintenance_logs_email"
2018-07-25 22:00:58 +02:00
android:selectAllOnFocus="true"
2020-01-09 21:41:02 +01:00
android:title="@string/maintenance_email"
validate:testType="email"/>
2018-08-07 21:07:43 +02:00
2020-01-09 21:41:02 +01:00
<info.nightscout.androidaps.utils.textValidator.ValidatingEditTextPreference
2018-07-25 22:00:58 +02:00
android:defaultValue="2"
android:inputType="number"
android:key="@string/key_maintenance_logs_amount"
2020-01-09 21:41:02 +01:00
android:title="@string/maintenance_amount"
validate:maxNumber="10"
validate:minNumber="1"
validate:testType="numericRange"/>
2018-07-25 22:00:58 +02:00
</PreferenceCategory>
</androidx.preference.PreferenceScreen>