mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-13 10:31:03 +01:00
c7b4f295a1
Configurable for sms, k9, incoming calls, pebble messages, generic notifications. Color is unfortunately not configurable so far, see #37 Closes #29 Currently provided profiles are - staccato - short - medium - long - waterdrop - ring - alarm clock
160 lines
6.3 KiB
XML
160 lines
6.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<PreferenceCategory
|
|
android:key="pref_category_miband_personal"
|
|
android:title="@string/miband_prefs_about_you">
|
|
<EditTextPreference
|
|
android:key="mi_user_alias"
|
|
android:maxLength="17"
|
|
android:title="@string/miband_prefs_alias" />
|
|
|
|
<EditTextPreference
|
|
android:inputType="number"
|
|
android:key="mi_user_year_of_birth"
|
|
android:maxLength="4"
|
|
android:title="@string/miband_prefs_year_birth" />
|
|
|
|
<ListPreference
|
|
android:defaultValue="male"
|
|
android:entries="@array/gender"
|
|
android:entryValues="@array/gender_values"
|
|
android:key="mi_user_gender"
|
|
android:title="@string/miband_prefs_gender" />
|
|
|
|
<!--TODO: support localized heights and weights -->
|
|
<EditTextPreference
|
|
android:inputType="number"
|
|
android:key="mi_user_height_cm"
|
|
android:maxLength="3"
|
|
android:title="@string/miband_prefs_height_cm" />
|
|
|
|
<EditTextPreference
|
|
android:inputType="number"
|
|
android:key="mi_user_weight_kg"
|
|
android:maxLength="3"
|
|
android:title="@string/miband_prefs_weight_kg" />
|
|
|
|
<ListPreference
|
|
android:defaultValue="left"
|
|
android:entries="@array/wearside"
|
|
android:entryValues="@array/wearside_values"
|
|
android:key="mi_wearside"
|
|
android:title="@string/miband_prefs_wearside" />
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:key="pref_category_miband_notification"
|
|
android:title="@string/pref_header_vibration_settings">
|
|
|
|
<PreferenceScreen
|
|
android:key="vibration_profile_key"
|
|
android:title="@string/pref_screen_notification_profile_sms"
|
|
android:persistent="false">
|
|
|
|
<ListPreference
|
|
android:defaultValue="@string/p_staccato"
|
|
android:entries="@array/vibration_profile"
|
|
android:entryValues="@array/vibration_profile_values"
|
|
android:key="mi_vibration_profile_sms"
|
|
android:title="@string/miband_prefs_vibration" />
|
|
|
|
<EditTextPreference
|
|
android:defaultValue="3"
|
|
android:inputType="number"
|
|
android:key="mi_vibration_count_sms"
|
|
android:maxLength="1"
|
|
android:title="@string/pref_title_notifications_repetitions" />
|
|
</PreferenceScreen>
|
|
|
|
<PreferenceScreen
|
|
android:key="vibration_profile_key"
|
|
android:title="@string/pref_screen_notification_profile_incoming_call"
|
|
android:persistent="false">
|
|
|
|
<ListPreference
|
|
android:defaultValue="@string/p_ring"
|
|
android:entries="@array/vibration_profile"
|
|
android:entryValues="@array/vibration_profile_values"
|
|
android:key="mi_vibration_profile_incoming_call"
|
|
android:title="@string/miband_prefs_vibration" />
|
|
|
|
<EditTextPreference
|
|
android:defaultValue="60"
|
|
android:inputType="number"
|
|
android:key="mi_vibration_count_incoming_call"
|
|
android:maxLength="1"
|
|
android:title="@string/pref_title_notifications_repetitions" />
|
|
</PreferenceScreen>
|
|
|
|
<PreferenceScreen
|
|
android:key="vibration_profile_key"
|
|
android:title="@string/pref_screen_notification_profile_k9mail"
|
|
android:persistent="false">
|
|
|
|
<ListPreference
|
|
android:defaultValue="@string/p_medium"
|
|
android:entries="@array/vibration_profile"
|
|
android:entryValues="@array/vibration_profile_values"
|
|
android:key="mi_vibration_profile_k9mail"
|
|
android:title="@string/miband_prefs_vibration" />
|
|
|
|
<EditTextPreference
|
|
android:defaultValue="2"
|
|
android:inputType="number"
|
|
android:key="mi_vibration_count_k9mail"
|
|
android:maxLength="1"
|
|
android:title="@string/pref_title_notifications_repetitions" />
|
|
</PreferenceScreen>
|
|
|
|
<PreferenceScreen
|
|
android:key="vibration_profile_key"
|
|
android:title="@string/pref_screen_notification_profile_pebblemsg"
|
|
android:persistent="false">
|
|
|
|
<ListPreference
|
|
android:defaultValue="@string/p_short"
|
|
android:entries="@array/vibration_profile"
|
|
android:entryValues="@array/vibration_profile_values"
|
|
android:key="mi_vibration_profile_pebblemsg"
|
|
android:title="@string/miband_prefs_vibration" />
|
|
|
|
<EditTextPreference
|
|
android:defaultValue="1"
|
|
android:inputType="number"
|
|
android:key="mi_vibration_count_pebblemsg"
|
|
android:maxLength="1"
|
|
android:title="@string/pref_title_notifications_repetitions" />
|
|
</PreferenceScreen>
|
|
|
|
<PreferenceScreen
|
|
android:key="vibration_profile_key"
|
|
android:title="@string/pref_screen_notification_profile_generic"
|
|
android:persistent="false">
|
|
|
|
<ListPreference
|
|
android:defaultValue="@string/p_waterdrop"
|
|
android:entries="@array/vibration_profile"
|
|
android:entryValues="@array/vibration_profile_values"
|
|
android:key="mi_vibration_profile_generic"
|
|
android:title="@string/miband_prefs_vibration" />
|
|
|
|
<EditTextPreference
|
|
android:defaultValue="3"
|
|
android:inputType="number"
|
|
android:key="mi_vibration_count_generic"
|
|
android:maxLength="1"
|
|
android:title="@string/pref_title_notifications_repetitions" />
|
|
</PreferenceScreen>
|
|
|
|
</PreferenceCategory>
|
|
|
|
<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>
|
|
</PreferenceScreen> |