2015-05-07 01:30:40 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<PreferenceCategory
|
|
|
|
android:key="pref_category_miband_personal"
|
2015-05-09 21:43:04 +02:00
|
|
|
android:title="@string/miband_prefs_about_you">
|
2015-05-07 01:30:40 +02:00
|
|
|
<EditTextPreference
|
|
|
|
android:key="mi_user_alias"
|
|
|
|
android:maxLength="17"
|
2015-05-09 21:43:04 +02:00
|
|
|
android:title="@string/miband_prefs_alias" />
|
2015-05-07 01:30:40 +02:00
|
|
|
|
|
|
|
<EditTextPreference
|
2015-05-14 13:04:21 +02:00
|
|
|
android:inputType="number"
|
2015-05-10 13:08:28 +02:00
|
|
|
android:key="mi_user_year_of_birth"
|
2015-05-07 01:30:40 +02:00
|
|
|
android:maxLength="4"
|
2015-05-09 21:43:04 +02:00
|
|
|
android:title="@string/miband_prefs_year_birth" />
|
2015-05-07 01:30:40 +02:00
|
|
|
|
|
|
|
<ListPreference
|
|
|
|
android:defaultValue="male"
|
|
|
|
android:entries="@array/gender"
|
|
|
|
android:entryValues="@array/gender_values"
|
|
|
|
android:key="mi_user_gender"
|
2015-05-09 21:43:04 +02:00
|
|
|
android:title="@string/miband_prefs_gender" />
|
2015-05-07 01:30:40 +02:00
|
|
|
|
|
|
|
<!--TODO: support localized heights and weights -->
|
|
|
|
<EditTextPreference
|
2015-05-14 13:04:21 +02:00
|
|
|
android:inputType="number"
|
2015-05-10 13:08:28 +02:00
|
|
|
android:key="mi_user_height_cm"
|
2015-05-07 01:30:40 +02:00
|
|
|
android:maxLength="3"
|
2015-05-09 21:43:04 +02:00
|
|
|
android:title="@string/miband_prefs_height_cm" />
|
2015-05-07 01:30:40 +02:00
|
|
|
|
|
|
|
<EditTextPreference
|
2015-05-14 13:04:21 +02:00
|
|
|
android:inputType="number"
|
2015-05-10 13:08:28 +02:00
|
|
|
android:key="mi_user_weight_kg"
|
2015-05-07 01:30:40 +02:00
|
|
|
android:maxLength="3"
|
2015-05-09 21:43:04 +02:00
|
|
|
android:title="@string/miband_prefs_weight_kg" />
|
2015-05-07 01:30:40 +02:00
|
|
|
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
2015-05-10 13:08:28 +02:00
|
|
|
<PreferenceCategory
|
|
|
|
android:key="pref_key_development"
|
|
|
|
android:title="@string/pref_header_development">
|
|
|
|
<EditTextPreference
|
|
|
|
android:digits="0123456789ABCDEF:"
|
|
|
|
android:key="development_miaddr"
|
|
|
|
android:maxLength="17"
|
|
|
|
android:title="@string/pref_title_development_miaddr" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
2015-05-14 13:04:21 +02:00
|
|
|
<PreferenceCategory
|
|
|
|
android:key="pref_category_miband_notification"
|
|
|
|
android:title="@string/pref_header_vibration_count">
|
|
|
|
<EditTextPreference
|
|
|
|
android:defaultValue="3"
|
|
|
|
android:inputType="number"
|
|
|
|
android:key="mi_vibration_count_sms"
|
|
|
|
android:maxLength="1"
|
|
|
|
android:title="@string/pref_title_notifications_sms" />
|
|
|
|
<EditTextPreference
|
|
|
|
android:defaultValue="3"
|
|
|
|
android:inputType="number"
|
|
|
|
android:key="mi_vibration_count_k9mail"
|
|
|
|
android:maxLength="1"
|
|
|
|
android:title="@string/pref_title_notifications_k9mail" />
|
|
|
|
<EditTextPreference
|
|
|
|
android:defaultValue="3"
|
|
|
|
android:inputType="number"
|
|
|
|
android:key="mi_vibration_count_pebblemsg"
|
|
|
|
android:maxLength="1"
|
|
|
|
android:title="@string/pref_title_notifications_pebblemsg" />
|
|
|
|
<EditTextPreference
|
|
|
|
android:defaultValue="3"
|
|
|
|
android:inputType="number"
|
|
|
|
android:key="mi_vibration_count_generic"
|
|
|
|
android:maxLength="1"
|
|
|
|
android:title="@string/pref_title_notifications_generic" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
2015-05-07 01:30:40 +02:00
|
|
|
</PreferenceScreen>
|