<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <PreferenceCategory android:title="@string/settings_title_display_options">

        <SeekBarPreference
            android:key="pref_number_days"
            android:title="@string/settings_forecast_days"
            android:max="16"
            android:defaultValue="8"
            app:showSeekBarValue="true"
            />

        <SwitchPreference
            android:key="pref_summarize"
            android:title="@string/settings_summarize"
            android:summary="@string/summary_summarize"
            android:defaultValue="false"
            />

        <SwitchPreference
            android:key="pref_TimeFormat"
            android:title="@string/settings_time24h"
            android:summary="@string/summary_time24h"
            android:defaultValue="true"
            />

        <SwitchPreference
            android:key="pref_DarkMode"
            android:title="@string/settings_darkmode"
            android:defaultValue="false"
            />

        <SwitchPreference
            android:key="pref_debug"
            android:title="Debug"
            android:defaultValue="false"
            />

    </PreferenceCategory>


    <PreferenceCategory android:title="@string/settings_intervals">
        <ListPreference
            app:useSimpleSummaryProvider="true"
            android:defaultValue="1"
            android:entries="@array/refreshIntervalArray"
            android:entryValues="@array/refreshIntervalValues"
            android:key="pref_updateInterval"
            android:summary="@string/settings_interval_summary"
            android:title="@string/settings_update_interval" />
    </PreferenceCategory>

    <PreferenceCategory android:title="@string/settings_server_urls" android:summary="@string/settings_server_summary">
        <EditTextPreference
            android:title="Open-Meteo API"
            android:key="pref_OM_URL"
            android:defaultValue="https://api.open-meteo.com/v1/"
            />
        <EditTextPreference
            android:title="OpenStreetMap API"
            android:key="pref_OsmTiles_URL"
            android:defaultValue="https://tile.openstreetmap.org/"
            />
        <EditTextPreference
            android:title="Open-Meteo Geocoding API"
            android:key="pref_OMGEO_URL"
            android:defaultValue="https://geocoding-api.open-meteo.com/"
            />
    </PreferenceCategory>

</PreferenceScreen>
