1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-12 11:47:46 +01:00
Gadgetbridge/app/src/main/res/xml/devicesettings_fossilhybridhr.xml
Arjan Schrijver e4d8f5f3e2 Fossil Hybrid HR: Add flexible custom menu on watch (#2616)
This PR adds support for a new custom menu system on the Fossil Hybrid HR, developed by @dakhnod. For regular users this PR will change nothing, apart from also giving an extra option to light up the display when receiving new notifications.
For more advanced users, there's the [Fossil HR Menu Companion app](https://github.com/dakhnod/Fossil-HR-Menu-Companion) that's needed to enable and configure the new menu system. Just disable one or more of the physical buttons in Gadgetbridge and configure them instead in the companion app to get started.

Co-authored-by: Daniel Dakhno <dakhnod@gmail.com>
Co-authored-by: Arjan Schrijver <a_gadgetbridge@anymore.nl>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2616
2022-03-22 20:52:43 +01:00

153 lines
6.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceScreen
android:key="button_configuration"
android:icon="@drawable/ic_smart_button"
android:title="@string/pref_title_physical_buttons"
android:summary="@string/pref_summary_physical_buttons">
<ListPreference
android:defaultValue="weatherApp"
android:entries="@array/pref_hybridhr_buttonfunctions"
android:entryValues="@array/pref_hybridhr_buttonfunctions_values"
android:key="button_1_function_short"
android:summary="%s"
android:title="@string/pref_title_upper_button_function_short" />
<ListPreference
android:defaultValue="weatherApp"
android:entries="@array/pref_hybridhr_buttonfunctions"
android:entryValues="@array/pref_hybridhr_buttonfunctions_values"
android:key="button_1_function_long"
android:summary="%s"
android:title="@string/pref_title_upper_button_function_long" />
<ListPreference
android:defaultValue="commuteApp"
android:entries="@array/pref_hybridhr_buttonfunctions"
android:entryValues="@array/pref_hybridhr_buttonfunctions_values"
android:key="button_2_function_short"
android:summary="%s"
android:title="@string/pref_title_middle_button_function_short" />
<Preference
android:selectable="false"
android:persistent="false"
android:key="button_2_function_long"
android:summary="@string/menuitem_menu"
android:title="@string/pref_title_middle_button_function_long" />
<ListPreference
android:defaultValue="musicApp"
android:entries="@array/pref_hybridhr_buttonfunctions"
android:entryValues="@array/pref_hybridhr_buttonfunctions_values"
android:key="button_3_function_short"
android:summary="%s"
android:title="@string/pref_title_lower_button_function_short" />
<ListPreference
android:defaultValue="musicApp"
android:entries="@array/pref_hybridhr_buttonfunctions"
android:entryValues="@array/pref_hybridhr_buttonfunctions_values"
android:key="button_3_function_long"
android:summary="%s"
android:title="@string/pref_title_lower_button_function_long" />
<Preference
android:selectable="false"
android:persistent="false"
android:key="button_1_function_long_warning"
android:summary="@string/fossil_hr_button_config_info" />
</PreferenceScreen>
<PreferenceScreen
android:icon="@drawable/ic_activity_unknown_small"
android:title="@string/prefs_activity_recognition"
android:key="activity_recognition_settings">
<ListPreference
android:key="activity_recognize_running"
android:title="@string/pref_activity_recognize_running"
android:icon="@drawable/ic_activity_running"
android:entryValues="@array/fossil_hr_activity_recognition_mode_values"
android:entries="@array/fossil_hr_activity_recognition_modes"/>
<ListPreference
android:key="activity_recognize_biking"
android:title="@string/pref_activity_recognize_biking"
android:icon="@drawable/ic_activity_biking"
android:entryValues="@array/fossil_hr_activity_recognition_mode_values"
android:entries="@array/fossil_hr_activity_recognition_modes"/>
<ListPreference
android:key="activity_recognize_walking"
android:title="@string/pref_activity_recognize_walking"
android:icon="@drawable/ic_activity_walking"
android:entryValues="@array/fossil_hr_activity_recognition_mode_values"
android:entries="@array/fossil_hr_activity_recognition_modes"/>
<ListPreference
android:key="activity_recognize_rowing"
android:title="@string/pref_activity_recognize_rowing"
android:icon="@drawable/ic_activity_rowing"
android:entryValues="@array/fossil_hr_activity_recognition_mode_values"
android:entries="@array/fossil_hr_activity_recognition_modes"/>
</PreferenceScreen>
<Preference
android:title="@string/qhybrid_pref_title_actions"
android:icon="@drawable/ic_pending_actions"
android:summary="@string/qhybrid_pref_summary_actions">
<intent
android:targetPackage="nodomain.freeyourgadget.gadgetbridge"
android:targetClass="nodomain.freeyourgadget.gadgetbridge.devices.qhybrid.CommuteActionsActivity" />
</Preference>
<SeekBarPreference
android:defaultValue="2"
android:icon="@drawable/ic_vibration"
android:key="vibration_strength"
android:max="3"
android:title="@string/pref_title_vibration_strength"
app:showSeekBarValue="true" />
<Preference
android:title="@string/qhybrid_title_calibration"
android:icon="@drawable/ic_sensor_calibration"
android:summary="@string/qhybrid_summary_calibration">
<intent
android:targetPackage="nodomain.freeyourgadget.gadgetbridge"
android:targetClass="nodomain.freeyourgadget.gadgetbridge.devices.qhybrid.CalibrationActivity" />
</Preference>
<PreferenceScreen
android:key="developer_settings"
android:icon="@drawable/ic_developer_mode"
android:title="@string/pref_title_developer_settings"
android:summary="@string/pref_summary_developer_settings">
<SwitchPreference
android:defaultValue="false"
android:key="save_raw_activity_files"
android:title="@string/pref_qhybrid_save_raw_activity_files" />
<SwitchPreference
android:defaultValue="false"
android:key="dangerous_external_intents"
android:title="@string/qhybrid_pref_title_external_intents"
android:summary="@string/qhybrid_pref_summary_external_intents" />
<Preference
android:title="@string/qhybrid_title_file_management"
android:summary="@string/qhybrid_summary_file_management">
<intent
android:targetPackage="nodomain.freeyourgadget.gadgetbridge"
android:targetClass="nodomain.freeyourgadget.gadgetbridge.devices.qhybrid.FileManagementActivity" />
</Preference>
<SwitchPreference
android:defaultValue="true"
android:key="enable_on_device_confirmation"
android:title="@string/qhybrid_title_on_device_confirmation"
android:summary="@string/qhybrid_summary_on_device_confirmation" />
</PreferenceScreen>
</androidx.preference.PreferenceScreen>