<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto"
    app:title="@string/pref_root_title">

    <PreferenceCategory app:title="@string/pref_hosts_installation">
        <Preference
            app:key="@string/pref_open_hosts_key"
            app:persistent="false"
            app:title="@string/pref_root_open_hosts" />
        <SwitchPreferenceCompat
            app:defaultValue="@bool/pref_never_reboot_def"
            app:key="@string/pref_never_reboot_key"
            app:title="@string/pref_never_reboot" />
    </PreferenceCategory>

    <PreferenceCategory
        app:summary="@string/pref_hosts_redirection_summary"
        app:title="@string/pref_hosts_redirection">
        <EditTextPreference
            app:defaultValue="@string/pref_redirection_ipv4_def"
            app:dialogLayout="@layout/pref_edittext_dialog"
            app:key="@string/pref_redirection_ipv4_key"
            app:title="@string/pref_redirection_ipv4" />
        <EditTextPreference
            app:defaultValue="@string/pref_redirection_ipv6_def"
            app:dialogLayout="@layout/pref_edittext_dialog"
            app:enabled="false"
            app:key="@string/pref_redirection_ipv6_key"
            app:title="@string/pref_redirection_ipv6" />
    </PreferenceCategory>

    <PreferenceCategory app:title="@string/pref_webserver">
        <Preference
            app:persistent="false"
            app:selectable="false"
            app:summary="@string/pref_webserver_summary" />
        <SwitchPreferenceCompat
            app:defaultValue="@bool/pref_webserver_enabled_def"
            app:key="@string/pref_webserver_enabled_key"
            app:title="@string/pref_webserver_enabled" />
        <Preference
            app:dependency="@string/pref_webserver_enabled_key"
            app:key="@string/pref_webserver_test_key"
            app:persistent="false"
            app:summary="@string/pref_webserver_state_checking"
            app:title="@string/pref_webserver_test" />
        <Preference
            app:dependency="@string/pref_webserver_enabled_key"
            app:key="@string/pref_webserver_certificate_key"
            app:persistent="false"
            app:title="@string/pref_webserver_certificate" />
        <SwitchPreferenceCompat
            app:defaultValue="@bool/pref_webserver_icon_def"
            app:dependency="@string/pref_webserver_enabled_key"
            app:key="@string/pref_webserver_icon_key"
            app:title="@string/pref_webserver_icon" />
    </PreferenceCategory>

</PreferenceScreen>
