1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-28 07:50:11 +02:00
Gadgetbridge/app/src/main/res/xml/devicesettings_fossilhybridhr.xml
2023-06-10 17:05:09 +01:00

189 lines
8.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:icon="@drawable/ic_activity_unknown_small"
android:title="@string/pref_workout_detection_title"
android:summary="@string/pref_workout_detection_summary"
android:key="workout_detection_settings">
<PreferenceCategory
android:key="pref_workout_detection_running"
android:title="@string/activity_type_running">
<SwitchPreference
android:defaultValue="false"
android:key="activity_recognize_running_enabled"
android:title="@string/pref_workout_detection_enabled"
android:summary="@string/pref_workout_detection_summary"
android:icon="@drawable/ic_activity_running"/>
<SwitchPreference
android:defaultValue="false"
android:key="activity_recognize_running_ask_first"
android:title="@string/pref_workout_detection_ask_first"
android:summary="@string/pref_workout_detection_ask_first_summary"
android:icon="@drawable/ic_warning_gray"
android:dependency="activity_recognize_running_enabled"/>
<EditTextPreference
android:defaultValue="3"
android:inputType="number"
android:icon="@drawable/ic_timer"
android:key="activity_recognize_running_minutes"
android:title="@string/pref_workout_detection_time"
android:summary="@string/pref_workout_detection_time_summary"
android:dependency="activity_recognize_running_enabled"/>
</PreferenceCategory>
<PreferenceCategory
android:key="pref_workout_detection_biking"
android:title="@string/activity_type_biking">
<SwitchPreference
android:defaultValue="false"
android:key="activity_recognize_biking_enabled"
android:title="@string/pref_workout_detection_enabled"
android:summary="@string/pref_workout_detection_summary"
android:icon="@drawable/ic_activity_biking"/>
<SwitchPreference
android:defaultValue="false"
android:key="activity_recognize_biking_ask_first"
android:title="@string/pref_workout_detection_ask_first"
android:summary="@string/pref_workout_detection_ask_first_summary"
android:icon="@drawable/ic_warning_gray"
android:dependency="activity_recognize_biking_enabled"/>
<EditTextPreference
android:defaultValue="5"
android:inputType="number"
android:icon="@drawable/ic_timer"
android:key="activity_recognize_biking_minutes"
android:title="@string/pref_workout_detection_time"
android:summary="@string/pref_workout_detection_time_summary"
android:dependency="activity_recognize_biking_enabled"/>
</PreferenceCategory>
<PreferenceCategory
android:key="pref_workout_detection_walking"
android:title="@string/activity_type_walking">
<SwitchPreference
android:defaultValue="false"
android:key="activity_recognize_walking_enabled"
android:title="@string/pref_workout_detection_enabled"
android:summary="@string/pref_workout_detection_summary"
android:icon="@drawable/ic_activity_walking"/>
<SwitchPreference
android:defaultValue="false"
android:key="activity_recognize_walking_ask_first"
android:title="@string/pref_workout_detection_ask_first"
android:summary="@string/pref_workout_detection_ask_first_summary"
android:icon="@drawable/ic_warning_gray"
android:dependency="activity_recognize_walking_enabled"/>
<EditTextPreference
android:defaultValue="10"
android:inputType="number"
android:icon="@drawable/ic_timer"
android:key="activity_recognize_walking_minutes"
android:title="@string/pref_workout_detection_time"
android:summary="@string/pref_workout_detection_time_summary"
android:dependency="activity_recognize_walking_enabled"/>
</PreferenceCategory>
<PreferenceCategory
android:key="pref_workout_detection_rowing"
android:title="@string/activity_type_rowing">
<SwitchPreference
android:defaultValue="false"
android:key="activity_recognize_rowing_enabled"
android:title="@string/pref_workout_detection_enabled"
android:summary="@string/pref_workout_detection_summary"
android:icon="@drawable/ic_activity_rowing"/>
<SwitchPreference
android:defaultValue="false"
android:key="activity_recognize_rowing_ask_first"
android:title="@string/pref_workout_detection_ask_first"
android:summary="@string/pref_workout_detection_ask_first_summary"
android:icon="@drawable/ic_warning_gray"
android:dependency="activity_recognize_rowing_enabled"/>
<EditTextPreference
android:defaultValue="3"
android:inputType="number"
android:icon="@drawable/ic_timer"
android:key="activity_recognize_rowing_minutes"
android:title="@string/pref_workout_detection_time"
android:summary="@string/pref_workout_detection_time_summary"
android:dependency="activity_recognize_rowing_enabled"/>
</PreferenceCategory>
</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="@string/applicationId"
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" />
<EditTextPreference
android:key="voice_service_package"
android:title="@string/voice_service_package_title"
android:summary="@string/voice_service_package_summary"
app:useSimpleSummaryProvider="true"/>
<EditTextPreference
android:key="voice_service_class"
android:title="@string/voice_service_class_title"
android:summary="@string/voice_service_class_summary"
app:useSimpleSummaryProvider="true" />
</PreferenceScreen>
</androidx.preference.PreferenceScreen>