<?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:title="Clock"
        app:allowDividerAbove="false"
        app:allowDividerBelow="false">

        <SwitchPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="true"
            android:title="Show Clock"
            app:key="clockEnabled" />
        <eu.ottop.yamlauncher.settings.SpinnerPreference
            android:defaultValue="left"
            app:dependency="clockEnabled"
            android:entries="@array/h_alignment_options"
            android:entryValues="@array/h_alignment_values"
            app:key="clockAlignment"
            app:title="Clock Alignment"
            app:useSimpleSummaryProvider="true" />
        <eu.ottop.yamlauncher.settings.SpinnerPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="medium"
            app:dependency="clockEnabled"
            android:entries="@array/size_options"
            android:entryValues="@array/size_values"
            app:key="clockSize"
            app:title="Clock Size"
            app:useSimpleSummaryProvider="true" />
        <SwitchPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="true"
            android:title="Clicking Time Opens Clock"
            app:dependency="clockEnabled"
            app:key="clockClick" />
        <SwitchPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="false"
            android:title="Custom Clock"
            app:dependency="clockClick"
            app:key="clockSwipe" />
        <Preference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:dependency="clockSwipe"
            app:key="clockSwipeApp"
            app:selectable="true"
            app:title="Set Clock App" />
    </PreferenceCategory>
    <PreferenceCategory
        android:title="Date"
        app:allowDividerAbove="false"
        app:allowDividerBelow="false">

        <SwitchPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="true"
            android:title="Show Date"
            app:key="dateEnabled" />
        <eu.ottop.yamlauncher.settings.SpinnerPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="medium"
            app:dependency="dateEnabled"
            android:entries="@array/size_options"
            android:entryValues="@array/size_values"
            app:key="dateSize"
            app:title="Date Size"
            app:useSimpleSummaryProvider="true" />
        <SwitchPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="false"
            android:title="Battery Indicator"
            app:dependency="dateEnabled"
            app:key="batteryEnabled" />
        <SwitchPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="true"
            android:title="Clicking Date Opens Calendar"
            app:dependency="dateEnabled"
            app:key="dateClick" />
        <SwitchPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="false"
            android:title="Custom Calendar"
            app:dependency="dateClick"
            app:key="dateSwipe" />
        <Preference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:dependency="dateSwipe"
            app:key="dateSwipeApp"
            app:selectable="true"
            app:title="Set Calendar App" />
    </PreferenceCategory>
    <PreferenceCategory
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:allowDividerAbove="false"
        app:allowDividerBelow="false"
        app:title="Weather">
        <SwitchPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="false"
            android:title="Weather"
            app:dependency="dateEnabled"
            app:key="weatherEnabled" />
        <SwitchPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="false"
            android:title="GPS Location"
            app:dependency="weatherEnabled"
            app:key="gpsLocation" />
        <Preference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:dependency="weatherEnabled"
            app:key="manualLocation"
            app:selectable="true"
            app:title="Set Manual Location" />
        <eu.ottop.yamlauncher.settings.SpinnerPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="celsius"
            app:dependency="weatherEnabled"
            android:entries="@array/temp_units"
            android:entryValues="@array/unit_values"
            app:key="tempUnits"
            app:title="Units"
            app:useSimpleSummaryProvider="true" />
    </PreferenceCategory>
    <PreferenceCategory
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:allowDividerAbove="false"
        app:allowDividerBelow="false"
        app:title="Shortcuts">
        <eu.ottop.yamlauncher.settings.SpinnerPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="4"
            android:entries="@array/shortcut_options"
            android:entryValues="@array/shortcut_options"
            app:key="shortcutNo"
            app:title="Number of Shortcuts"
            app:useSimpleSummaryProvider="true" />
        <eu.ottop.yamlauncher.settings.SpinnerPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="left"
            android:entries="@array/h_alignment_options"
            android:entryValues="@array/h_alignment_values"
            app:key="shortcutAlignment"
            app:title="Horizontal Alignment"
            app:useSimpleSummaryProvider="true" />
        <eu.ottop.yamlauncher.settings.SpinnerPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="center"
            android:entries="@array/v_alignment_options"
            android:entryValues="@array/v_alignment_values"
            app:key="shortcutVAlignment"
            app:title="Vertical Alignment"
            app:useSimpleSummaryProvider="true" />
        <eu.ottop.yamlauncher.settings.SpinnerPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="medium"
            android:entries="@array/size_options"
            android:entryValues="@array/size_values"
            app:key="shortcutSize"
            app:title="Shortcut Size"
            app:useSimpleSummaryProvider="true" />
        <eu.ottop.yamlauncher.settings.SpinnerPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="0.11"
            android:entries="@array/shortcut_spacing_options"
            android:entryValues="@array/shortcut_spacing_values"
            app:key="shortcutWeight"
            app:title="Shortcut Spacing"
            app:useSimpleSummaryProvider="true" />
    </PreferenceCategory>
    <PreferenceCategory
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:allowDividerAbove="false"
        app:allowDividerBelow="false"
        app:title="Gestures">
        <SwitchPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="false"
            android:title="Swipe Left"
            app:key="leftSwipe" />
        <Preference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:dependency="leftSwipe"
            app:key="leftSwipeApp"
            app:selectable="true"
            app:title="Left Swipe App" />
        <SwitchPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="false"
            android:title="Swipe Right"
            app:key="rightSwipe" />
        <Preference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:dependency="rightSwipe"
            app:key="rightSwipeApp"
            app:selectable="true"
            app:title="Right Swipe App" />
        <SwitchPreference
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:defaultValue="false"
            android:title="Double Tap to Lock Screen"
            app:key="doubleTap" />
    </PreferenceCategory>

</PreferenceScreen>