<PreferenceScreen
    android:layout_marginTop="?attr/actionBarSize"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <PreferenceCategory
        android:title="@string/settings_general_category">

        <SwitchPreference
            android:key="dark_theme"
            android:title="@string/settings_dark_theme_title"
            android:summary="@string/settings_dark_theme_summary" />

        <SwitchPreference
            android:key="notification"
            android:title="@string/settings_notification_title"
            android:summary="@string/settings_notification_summary" />

        <Preference
            android:key="clear"
            android:title="@string/settings_clear_cache_title"
            android:summary="@string/settings_clear_cache_summary" />

    </PreferenceCategory>

    <PreferenceCategory
        android:key="magisk"
        android:title="@string/magisk">

        <CheckBoxPreference
            android:key="disable"
            android:title="@string/settings_core_only_title"
            android:summary="@string/settings_core_only_summary" />

        <SwitchPreference
            android:key="magiskhide"
            android:title="@string/magiskhide"
            android:summary="@string/settings_magiskhide_summary" />

        <SwitchPreference
            android:key="hosts"
            android:title="@string/settings_hosts_title"
            android:summary="@string/settings_hosts_summary" />

    </PreferenceCategory>

    <PreferenceCategory
        android:key="superuser"
        android:title="@string/superuser">

        <ListPreference
            android:key="su_access"
            android:title="@string/superuser_access"
            android:entries="@array/su_access"
            android:entryValues="@array/value_array" />

        <ListPreference
            android:key="multiuser_mode"
            android:title="@string/multiuser_mode"
            android:entries="@array/multiuser_mode"
            android:entryValues="@array/value_array" />

        <ListPreference
            android:key="mnt_ns"
            android:title="@string/mount_namespace_mode"
            android:entries="@array/namespace"
            android:entryValues="@array/value_array" />

        <ListPreference
            android:key="su_auto_response"
            android:title="@string/auto_response"
            android:entries="@array/auto_response"
            android:entryValues="@array/value_array" />

        <ListPreference
            android:key="su_request_timeout"
            android:title="@string/request_timeout"
            android:entries="@array/request_timeout"
            android:entryValues="@array/request_timeout_value" />

        <ListPreference
            android:key="su_notification"
            android:title="@string/superuser_notification"
            android:entries="@array/su_notification"
            android:entryValues="@array/value_array" />

        <SwitchPreference
            android:key="su_reauth"
            android:title="@string/settings_su_reauth_title"
            android:summary="@string/settings_su_reauth_summary"/>

    </PreferenceCategory>

    <PreferenceCategory
        android:key="developer"
        android:title="@string/settings_development_category">

        <SwitchPreference
            android:key="developer_logging"
            android:defaultValue="false"
            android:title="@string/settings_developer_logging_title"
            android:summary="@string/settings_developer_logging_summary" />

        <SwitchPreference
            android:key="shell_logging"
            android:defaultValue="false"
            android:title="@string/settings_shell_logging_title"
            android:summary="@string/settings_shell_logging_summary" />

    </PreferenceCategory>

</PreferenceScreen>