1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-02 11:26:09 +02:00
Gadgetbridge/app/src/main/res/xml/charts_preferences.xml
2024-03-31 07:46:47 +00:00

139 lines
5.5 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">
<PreferenceCategory
android:key="pref_charts"
android:title="@string/activity_prefs_charts"
app:iconSpaceReserved="false">
<EditTextPreference
android:defaultValue="250"
android:inputType="number"
android:key="chart_max_heart_rate"
android:maxLength="3"
android:title="@string/activity_prefs_chart_max_heart_rate"
app:iconSpaceReserved="false"
app:useSimpleSummaryProvider="true" />
<EditTextPreference
android:defaultValue="10"
android:inputType="number"
android:key="chart_min_heart_rate"
android:maxLength="3"
android:title="@string/activity_prefs_chart_min_heart_rate"
app:iconSpaceReserved="false"
app:useSimpleSummaryProvider="true" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="chart_heartrate_color"
android:layout="@layout/preference_checkbox"
android:summaryOff="@string/pref_chart_heartrate_color_orange"
android:summaryOn="@string/pref_chart_heartrate_color_red"
android:title="@string/pref_title_chart_heartrate_color"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:key="charts_allow_swipe"
android:layout="@layout/preference_checkbox"
android:title="@string/pref_title_charts_swipe"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="chart_sleep_range_24h"
android:layout="@layout/preference_checkbox"
android:summaryOff="@string/pref_chart_sleep_rolling_24_off"
android:summaryOn="@string/pref_chart_sleep_rolling_24_on"
android:title="@string/pref_title_chart_sleep_rolling_24_hour"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:key="charts_show_average"
android:layout="@layout/preference_checkbox"
android:title="@string/pref_title_charts_average"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="charts_range"
android:layout="@layout/preference_checkbox"
android:summaryOff="@string/pref_charts_range_off"
android:summaryOn="@string/pref_charts_range_on"
android:title="@string/pref_title_charts_range"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:key="charts_show_ongoing_activity"
android:layout="@layout/preference_checkbox"
android:title="@string/show_ongoing_activity"
app:iconSpaceReserved="false" />
<EditTextPreference
android:defaultValue="6"
android:inputType="number"
android:key="chart_sleep_lines_limit"
android:maxLength="2"
android:title="@string/pref_chart_sleep_lines_limit"
app:iconSpaceReserved="false"
app:useSimpleSummaryProvider="true" />
</PreferenceCategory>
<PreferenceCategory
android:key="pref_charts_activity_list"
android:title="@string/charts_activity_list"
app:iconSpaceReserved="false">
<EditTextPreference
android:defaultValue="5"
android:inputType="number"
android:key="chart_list_min_session_length"
android:maxLength="2"
android:title="@string/activity_prefs_chart_min_session_length"
app:iconSpaceReserved="false"
app:useSimpleSummaryProvider="true" />
<EditTextPreference
android:defaultValue="5"
android:inputType="number"
android:key="chart_list_max_idle_phase_length"
android:maxLength="2"
android:title="@string/activity_prefs_chart_max_idle_phase_length"
app:iconSpaceReserved="false"
app:useSimpleSummaryProvider="true" />
<EditTextPreference
android:defaultValue="20"
android:inputType="number"
android:key="chart_list_min_steps_per_minute"
android:maxLength="3"
android:title="@string/activity_prefs_chart_min_steps_per_minute"
app:iconSpaceReserved="false"
app:useSimpleSummaryProvider="true" />
<EditTextPreference
android:defaultValue="120"
android:inputType="number"
android:key="chart_list_min_steps_per_minute_for_run"
android:maxLength="3"
android:title="@string/activity_prefs_chart_min_steps_per_minute_for_run"
app:iconSpaceReserved="false"
app:useSimpleSummaryProvider="true" />
</PreferenceCategory>
<PreferenceCategory
android:key="pref_category_activity_personal_title"
android:title="@string/activity_prefs_about_you"
app:iconSpaceReserved="false">
<Preference
android:key="pref_category_activity_personal"
android:title="@string/activity_prefs_about_you"
app:iconSpaceReserved="false" />
</PreferenceCategory>
</PreferenceScreen>