<?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"
	app:layout="@layout/pref_text"
	app:orderingFromXml="true">


	<Preference
		app:key="help"
		app:layout="@layout/pref_text"
		app:summary="github.com/sspanak/tt9"
		app:title="@string/pref_help">
		<intent
			android:action="android.intent.action.VIEW"
			android:data="@string/help_url" />
	</Preference>


	<PreferenceCategory
		android:title="@string/pref_category_appearance"
		app:layout="@layout/pref_category"
		app:singleLineTitle="true">

		<SwitchPreferenceCompat
			app:defaultValue="true"
			app:key="pref_dark_theme"
			app:layout="@layout/pref_switch"
			app:title="@string/pref_dark_theme" />

		<SwitchPreferenceCompat
			app:defaultValue="true"
			app:key="pref_show_soft_keys"
			app:layout="@layout/pref_switch"
			app:title="@string/pref_show_soft_function_keys" />

	</PreferenceCategory>


	<PreferenceCategory
		android:title="@string/pref_category_dictionaries"
		app:layout="@layout/pref_category"
		app:singleLineTitle="true">

		<MultiSelectListPreference
			app:key="pref_languages"
			app:layout="@layout/pref_text"
			app:title="@string/pref_choose_languages" />

		<Preference
			app:key="dictionary_load"
			app:layout="@layout/pref_text"
			app:title="@string/dictionary_load_title" />

		<Preference
			app:key="dictionary_truncate"
			app:layout="@layout/pref_text"
			app:title="@string/dictionary_truncate_title" />

	</PreferenceCategory>

	<PreferenceCategory
		android:title="@string/pref_category_predictive_mode"
		app:layout="@layout/pref_category"
		app:singleLineTitle="true">

		<SwitchPreferenceCompat
			app:key="auto_space"
			app:layout="@layout/pref_switch"
			app:title="@string/pref_auto_space"
			app:summary="@string/pref_auto_space_summary" />

		<SwitchPreferenceCompat
			app:defaultValue="true"
			app:key="auto_text_case"
			app:layout="@layout/pref_switch"
			app:summary="@string/pref_auto_text_case_summary"
			app:title="@string/pref_auto_text_case" />

	</PreferenceCategory>

	<PreferenceCategory
		android:title="@string/pref_category_keypad"
		app:layout="@layout/pref_category">
		<Preference
			app:fragment="io.github.sspanak.tt9.preferences.PreferencesHotkeysFragment"
			app:key="screen_hotkeys"
			app:layout="@layout/pref_text"
			app:title="@string/pref_category_function_keys" />
	</PreferenceCategory>

	<PreferenceCategory
		android:title="@string/pref_category_about"
		app:layout="@layout/pref_category"
		app:singleLineTitle="true">
		<Preference
			app:key="version_info"
			app:layout="@layout/pref_text"
			app:title="@string/app_name" />
	</PreferenceCategory>

</PreferenceScreen>
