<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">

    <com.stardust.theme.preference.ThemeColorPreferenceCategory android:title="@string/text_no_root_script_record">

        <com.stardust.theme.preference.ThemeColorSwitchPreference
            android:defaultValue="false"
            android:key="@string/key_use_volume_control_record"
            android:summary="@string/summary_use_volume_control_record"
            android:title="@string/text_use_volume_control_record"/>
    </com.stardust.theme.preference.ThemeColorPreferenceCategory>


    <com.stardust.theme.preference.ThemeColorPreferenceCategory android:title="@string/text_script_record_with_root">

        <com.afollestad.materialdialogs.prefs.MaterialListPreference
            android:defaultValue="@string/text_none"
            android:entries="@array/record_control_keys"
            android:entryValues="@array/record_control_values"
            android:key="@string/key_start_record_trigger"
            android:title="@string/text_use_key_to_start_record"
            />
        <com.afollestad.materialdialogs.prefs.MaterialListPreference
            android:defaultValue="@string/text_none"
            android:entries="@array/record_control_keys"
            android:entryValues="@array/record_control_values"
            android:key="@string/key_stop_record_trigger"
            android:title="@string/text_use_key_to_stop_record"
            />
    </com.stardust.theme.preference.ThemeColorPreferenceCategory>

    <com.stardust.theme.preference.ThemeColorPreferenceCategory android:title="@string/text_script_running">

        <com.stardust.theme.preference.ThemeColorSwitchPreference
            android:defaultValue="false"
            android:key="@string/key_use_volume_control_running"
            android:title="@string/text_use_volume_to_stop_running"/>

        <com.stardust.theme.preference.ThemeColorSwitchPreference
            android:defaultValue="false"
            android:key="@string/key_guard_mode"
            android:summary="@string/summary_guard_mode"
            android:title="@string/text_guard_mode"/>
    </com.stardust.theme.preference.ThemeColorPreferenceCategory>

    <com.stardust.theme.preference.ThemeColorPreferenceCategory android:title="@string/text_edit">

        <com.afollestad.materialdialogs.prefs.MaterialEditTextPreference
            android:defaultValue="2000"
            android:inputType="number"
            android:key="@string/key_max_length_for_code_completion"
            android:title="@string/text_max_length_for_code_completion"/>
    </com.stardust.theme.preference.ThemeColorPreferenceCategory>

    <com.stardust.theme.preference.ThemeColorPreferenceCategory android:title="@string/text_accessibility_service">

        <com.stardust.theme.preference.ThemeColorSwitchPreference
            android:defaultValue="false"
            android:key="@string/key_enable_accessibility_service_by_root"
            android:summary="@string/summary_enable_accessibility_service_by_root"
            android:title="@string/text_enable_accessibility_service_by_root"/>
    </com.stardust.theme.preference.ThemeColorPreferenceCategory>

    <com.stardust.theme.preference.ThemeColorPreferenceCategory android:title="@string/text_appearance">
        <Preference android:title="@string/text_theme_color"/>
        <Preference android:title="@string/text_reset_background"/>
    </com.stardust.theme.preference.ThemeColorPreferenceCategory>

    <com.stardust.theme.preference.ThemeColorPreferenceCategory android:title="@string/text_about">

        <Preference android:title="@string/text_check_update"/>

        <Preference android:title="@string/text_issue_report"/>

        <Preference android:title="@string/text_about_me_and_repo"/>

        <Preference android:title="@string/text_licenses"/>
    </com.stardust.theme.preference.ThemeColorPreferenceCategory>

</PreferenceScreen>