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

74 lines
2.8 KiB
XML
Raw Normal View History

<?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:app="http://schemas.android.com/apk/res-auto"
xmlns:validate="http://schemas.android.com/apk/res-auto">
2019-07-14 11:52:51 +02:00
<PreferenceCategory
2020-01-09 21:41:02 +01:00
android:title="@string/tidepool"
app:initialExpandedChildrenCount="0">
2019-07-14 11:52:51 +02:00
2020-01-09 21:41:02 +01:00
<info.nightscout.androidaps.utils.textValidator.ValidatingEditTextPreference
2019-07-14 11:52:51 +02:00
android:key="@string/key_tidepool_username"
android:summary="@string/summary_tidepool_username"
2020-01-09 21:41:02 +01:00
android:title="@string/title_tidepool_username"
validate:testType="email"/>
2019-07-14 11:52:51 +02:00
<EditTextPreference
android:inputType="textPassword"
android:key="@string/key_tidepool_password"
android:summary="@string/summary_tidepool_password"
android:title="@string/title_tidepool_password" />
2020-01-09 21:41:02 +01:00
2019-07-14 11:52:51 +02:00
<Preference
android:key="@string/key_tidepool_test_login"
android:title="@string/title_tidepool_test_login" />
2020-01-09 21:41:02 +01:00
2019-07-14 11:52:51 +02:00
<CheckBoxPreference
android:defaultValue="true"
android:key="@string/key_tidepool_upload_cgm"
android:title="@string/tidepool_upload_cgm" />
2020-01-09 21:41:02 +01:00
2019-07-14 11:52:51 +02:00
<CheckBoxPreference
android:defaultValue="true"
android:key="@string/key_tidepool_upload_bolus"
android:title="@string/tidepool_upload_bolus" />
2020-01-09 21:41:02 +01:00
2019-07-14 11:52:51 +02:00
<CheckBoxPreference
android:defaultValue="true"
android:key="@string/key_tidepool_upload_bg"
android:title="@string/tidepool_upload_bg" />
2020-01-09 21:41:02 +01:00
2019-07-14 11:52:51 +02:00
<CheckBoxPreference
android:defaultValue="true"
android:key="@string/key_tidepool_upload_tbr"
android:title="@string/tidepool_upload_tbr" />
2020-01-09 21:41:02 +01:00
2019-07-14 11:52:51 +02:00
<CheckBoxPreference
android:defaultValue="true"
android:key="@string/key_tidepool_upload_profile"
android:title="@string/tidepool_upload_profile" />
2020-01-09 21:41:02 +01:00
2019-07-14 11:52:51 +02:00
<CheckBoxPreference
android:defaultValue="true"
android:enabled="false"
android:key="@string/key_tidepool_dev_servers"
android:summary="@string/summary_tidepool_dev_servers"
android:title="@string/title_tidepool_dev_servers" />
2020-01-09 21:41:02 +01:00
2019-07-14 11:52:51 +02:00
<CheckBoxPreference
android:defaultValue="false"
android:key="@string/key_tidepool_only_while_charging"
android:summary="Upload data only when charging"
android:title="Only when charging" />
2020-01-09 21:41:02 +01:00
2019-07-14 11:52:51 +02:00
<CheckBoxPreference
android:defaultValue="false"
android:key="@string/key_tidepool_only_while_unmetered"
android:summary="Upload data only when connected to an unmetered network like Wifi"
android:title="Only on Wifi" />
</PreferenceCategory>
</androidx.preference.PreferenceScreen>