<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  app:iconSpaceReserved="false">
  <PreferenceCategory
    android:key="pref_display"
    android:title="@string/pref_display_title"
    app:iconSpaceReserved="false">

    <ListPreference
      android:defaultValue="-1"
      android:entries="@array/pref_night_modes_entries"
      android:entryValues="@array/pref_night_modes_values"
      android:key="pref_night_mode"
      android:summary="@string/pref_night_mode_summary"
      android:title="@string/pref_night_mode"
      app:iconSpaceReserved="false" />

    <SwitchPreferenceCompat
      android:defaultValue="false"
      android:key="pref_backtotop"
      android:summary="@string/pref_back_to_top_summary"
      android:title="@string/pref_back_to_top"
      app:iconSpaceReserved="false" />

    <SeekBarPreference
      android:defaultValue="2"
      android:max="6"
      android:summary="@string/pref_text_zoom_summary"
      app:iconSpaceReserved="false"
      app:key="text_zoom"
      app:title="@string/pref_text_zoom_title"
      app:updatesContinuously="true" />

  </PreferenceCategory>

  <PreferenceCategory
    android:key="pref_extras"
    android:title="@string/pref_extras"
    app:iconSpaceReserved="false">

    <SwitchPreferenceCompat
      android:defaultValue="false"
      android:key="pref_newtab_background"
      android:summary="@string/pref_newtab_background_summary"
      android:title="@string/pref_newtab_background_title"
      app:iconSpaceReserved="false" />

    <SwitchPreferenceCompat
      android:defaultValue="true"
      android:key="pref_external_link_popup"
      android:summary="@string/pref_external_link_popup_summary"
      android:title="@string/pref_external_link_popup_title"
      app:iconSpaceReserved="false" />

    <SwitchPreferenceCompat
      android:defaultValue="true"
      android:key="pref_wifi_only"
      android:summary="@string/pref_wifi_only"
      android:title="@string/pref_wifi_only"
      app:iconSpaceReserved="false" />
  </PreferenceCategory>

  <PreferenceCategory
    android:key="pref_storage"
    app:iconSpaceReserved="false"
    app:title="@string/pref_storage">

    <Preference
      android:key="pref_select_folder"
      android:title="@string/pref_current_folder"
      app:iconSpaceReserved="false" />

  </PreferenceCategory>

  <PreferenceCategory
    android:key="pref_history"
    android:title="@string/history"
    app:iconSpaceReserved="false">

    <Preference
      android:key="pref_clear_all_history"
      android:summary="@string/pref_clear_all_history_summary"
      android:title="@string/pref_clear_all_history_title"
      app:iconSpaceReserved="false" />

  </PreferenceCategory>
  <PreferenceCategory
    android:key="pref_notes"
    android:title="@string/pref_notes"
    app:iconSpaceReserved="false">

    <Preference
      android:key="pref_clear_all_notes"
      android:summary="@string/pref_clear_all_notes_summary"
      android:title="@string/pref_clear_all_notes_title"
      app:iconSpaceReserved="false" />

  </PreferenceCategory>

  <PreferenceCategory
    android:key="pref_notes"
    android:title="@string/bookmarks"
    app:iconSpaceReserved="false">

    <Preference
      android:key="pref_import_bookmark"
      android:summary="@string/pref_import_bookmark_summary"
      android:title="@string/pref_import_bookmark_title"
      app:iconSpaceReserved="false" />

    <Preference
      android:key="pref_export_bookmark"
      android:summary="@string/pref_export_bookmark_summary"
      android:title="@string/pref_export_bookmark_title"
      app:iconSpaceReserved="false" />

  </PreferenceCategory>
  <PreferenceCategory
    android:key="pref_permissions"
    android:title="@string/pref_permission"
    app:isPreferenceVisible="false"
    app:iconSpaceReserved="false">

    <Preference
      android:key="pref_manage_external_storage"
      android:title="@string/pref_allow_to_read_or_write_zim_files_on_sd_card"
      app:iconSpaceReserved="false" />

  </PreferenceCategory>
  <PreferenceCategory
    android:key="pref_language"
    android:title="@string/pref_language_title"
    app:iconSpaceReserved="false">

    <ListPreference
      android:key="pref_language_chooser"
      android:summary="@string/pref_language_chooser"
      android:title="@string/pref_language_title"
      app:iconSpaceReserved="false" />

  </PreferenceCategory>

  <PreferenceCategory
    android:key="pref_info"
    android:title="@string/pref_info_title"
    app:iconSpaceReserved="false">

    <EditTextPreference
      android:enabled="false"
      android:key="pref_version"
      android:persistent="false"
      android:selectable="true"
      android:shouldDisableView="false"
      android:title="@string/pref_info_version"
      app:iconSpaceReserved="false" />

    <Preference
      android:key="pref_credits"
      android:summary="@string/pref_credits"
      android:title="@string/pref_credits_title"
      app:iconSpaceReserved="false" />

  </PreferenceCategory>

</PreferenceScreen>
