mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 17:43:06 +02:00
eda1815393
Adds toggles to the User Interface section of the app Settings that allow the user to display or hide the three series available in the chart: Elevation, Speed/Pace, and Heart Rate. As a user of a heart rate monitor primarily during strength workouts and combat sports, the distance and elevation graphs are not helpful to me - in addition, their scale means that I am not able to easily see my exact heart rate. This should allow users in a similar situation to better determine exactly what is most helpful for them to be seen on the graph. Also updates heart rate series possible intervals - the smallest interval was 25, which was too low for most zone 1 cardio charts - if your heart rate goes from 70 to 125, with a 25 interval, most of the chart will be whitespace.
80 lines
4.0 KiB
XML
80 lines
4.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:title="@string/settings_ui_title">
|
|
|
|
<de.dennisguse.opentracks.settings.LocalePreference
|
|
android:key="@string/locale_key"
|
|
android:persistent="false"
|
|
android:title="@string/settings_locale_title"
|
|
app:useSimpleSummaryProvider="true" />
|
|
|
|
<ListPreference
|
|
android:defaultValue="@string/night_mode_default"
|
|
android:entries="@array/night_mode_options"
|
|
android:entryValues="@array/night_mode_values"
|
|
android:key="@string/night_mode_key"
|
|
android:title="@string/settings_night_mode_title"
|
|
app:useSimpleSummaryProvider="true" />
|
|
|
|
<SwitchPreferenceCompat
|
|
android:defaultValue="@bool/settings_ui_dynamic_colors_default"
|
|
android:key="@string/settings_ui_dynamic_colors_key"
|
|
android:summary="@string/settings_ui_dynamic_colors_summary"
|
|
android:title="@string/settings_ui_dynamic_colors_title" />
|
|
|
|
<PreferenceCategory app:title="@string/settings_recording_title">
|
|
|
|
<Preference
|
|
app:key="@string/stats_custom_layout_key"
|
|
app:title="@string/settings_recording_customize_layout_title" />
|
|
|
|
<de.dennisguse.opentracks.settings.ResetDialogPreference
|
|
android:dialogMessage="@string/settings_layout_reset_confirm_message"
|
|
android:dialogTitle="@string/settings_layout_reset_confirm_title"
|
|
android:key="@string/settings_layout_reset_key"
|
|
android:negativeButtonText="@android:string/cancel"
|
|
android:persistent="false"
|
|
android:positiveButtonText="@android:string/ok"
|
|
android:title="@string/settings_layout_reset" />
|
|
|
|
<SwitchPreferenceCompat
|
|
android:defaultValue="@bool/stats_show_on_lockscreen_while_recording_default"
|
|
android:key="@string/stats_show_on_lockscreen_while_recording_key"
|
|
android:summary="@string/settings_recording_show_on_lockscreen_while_recording_summary"
|
|
android:title="@string/settings_recording_show_on_lockscreen_while_recording_title" />
|
|
|
|
<SwitchPreferenceCompat
|
|
android:defaultValue="@bool/stats_keep_screen_on_while_recording_default"
|
|
android:key="@string/stats_keep_screen_on_while_recording_key"
|
|
android:summary="@string/settings_recording_keep_screen_on_while_recording_summary"
|
|
android:title="@string/settings_recording_keep_screen_on_while_recording_title" />
|
|
|
|
<SwitchPreferenceCompat
|
|
android:defaultValue="@bool/stats_fullscreen_while_recording_default"
|
|
android:key="@string/stats_fullscreen_while_recording_key"
|
|
android:summary="@string/settings_recording_fullscreen_on_while_recording_summary"
|
|
android:title="@string/settings_recording_fullscreen_on_while_recording_title" />
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory app:title="@string/settings_charts_title">
|
|
<SwitchPreferenceCompat
|
|
android:icon="@drawable/ic_activity_climbing_24dp"
|
|
android:defaultValue="@bool/chart_display_elevation_default"
|
|
android:key="@string/chart_display_elevation_key"
|
|
android:title="@string/settings_chart_display_elevation_title" />
|
|
|
|
<SwitchPreferenceCompat
|
|
android:icon="@drawable/ic_activity_snowboarding_24dp"
|
|
android:defaultValue="@bool/chart_display_pace_or_speed_default"
|
|
android:key="@string/chart_display_pace_or_speed_key"
|
|
android:title="@string/settings_chart_display_pace_or_speed_title" />
|
|
|
|
<SwitchPreferenceCompat
|
|
android:icon="@drawable/ic_activity_workout_24dp"
|
|
android:defaultValue="@bool/chart_display_heart_rate_default"
|
|
android:key="@string/chart_display_heart_rate_key"
|
|
android:title="@string/settings_chart_display_heart_rate_title" />
|
|
</PreferenceCategory>
|
|
</PreferenceScreen> |