1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2016 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 18<PreferenceScreen 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:settings="http://schemas.android.com/apk/res-auto" 21 android:title="@string/language_settings"> 22 <PreferenceCategory 23 android:key="languages_category" 24 android:title="@string/locale_picker_category_title"> 25 <Preference 26 android:key="phone_language" 27 android:title="@string/phone_language" 28 android:fragment="com.android.settings.localepicker.LocaleListEditor" 29 settings:controller="com.android.settings.language.PhoneLanguagePreferenceController" /> 30 31 <Preference 32 android:key="apps_language" 33 android:title="@string/app_locales_picker_menu_title" 34 android:summary="@string/app_locale_picker_summary" 35 android:fragment="com.android.settings.applications.manageapplications.ManageApplications" 36 settings:controller="com.android.settings.applications.appinfo.ManageAppLocalePreferenceController"> 37 <extra 38 android:name="classname" 39 android:value="com.android.settings.applications.appinfo.AppLocaleDetails" /> 40 </Preference> 41 42 <Preference 43 android:key="regional_preferences" 44 android:title="@string/regional_preferences_title" 45 android:summary="@string/regional_preferences_summary" 46 android:fragment="com.android.settings.regionalpreferences.RegionalPreferencesEntriesFragment" 47 settings:controller="com.android.settings.regionalpreferences.RegionalPreferencesController"> 48 </Preference> 49 50 </PreferenceCategory> 51 52 <PreferenceCategory 53 android:key="keyboards_category" 54 android:title="@string/keyboard_and_input_methods_category"> 55 <Preference 56 android:key="virtual_keyboard_pref" 57 android:title="@string/virtual_keyboard_category" 58 android:fragment="com.android.settings.inputmethod.AvailableVirtualKeyboardFragment" 59 settings:keywords="@string/keywords_virtual_keyboard"/> 60 61 <Preference 62 android:key="physical_keyboard_pref" 63 android:title="@string/physical_keyboard_title" 64 android:summary="@string/summary_placeholder" 65 android:fragment="com.android.settings.inputmethod.PhysicalKeyboardFragment"/> 66 </PreferenceCategory> 67 68 <PreferenceCategory 69 android:key="speech_category" 70 android:title="@string/speech_category_title"> 71 <com.android.settings.widget.GearPreference 72 android:key="voice_input_settings" 73 android:title="@string/voice_input_settings_title" 74 android:fragment="com.android.settings.language.DefaultVoiceInputPicker" /> 75 76 <Preference 77 android:key="tts_settings_summary" 78 android:title="@string/tts_settings_title" 79 android:fragment="com.android.settings.tts.TextToSpeechSettings" 80 settings:searchable="false"/> 81 </PreferenceCategory> 82 83 <PreferenceCategory 84 android:key="input_assistance_category" 85 android:title="@string/input_assistance"> 86 <!-- Spell checker preference title, summary and fragment will be set programmatically. --> 87 <!-- Note: Mark this as persistent="false" to remove unnecessarily saved shared preference. 88 See: InputMethodAndSubtypeUtil.removeUnnecessaryNonPersistentPreference. --> 89 <Preference 90 android:key="spellcheckers_settings" 91 android:title="@string/spellcheckers_settings_title" 92 android:persistent="false" 93 android:fragment="com.android.settings.inputmethod.SpellCheckersSettings" /> 94 95 <!-- User dictionary preference title and fragment will be set programmatically. --> 96 <Preference 97 android:key="key_user_dictionary_settings" 98 android:title="@string/user_dict_settings_title" 99 android:summary="@string/user_dict_settings_summary" 100 android:fragment="com.android.settings.inputmethod.UserDictionaryList" 101 settings:controller="com.android.settings.language.UserDictionaryPreferenceController" /> 102 </PreferenceCategory> 103 104 <PreferenceCategory 105 android:key="pointer_category" 106 android:layout="@layout/preference_category_no_label"> 107 <com.android.settings.PointerSpeedPreference 108 android:key="pointer_speed" 109 android:title="@string/pointer_speed" 110 android:dialogTitle="@string/pointer_speed" /> 111 </PreferenceCategory> 112 113 <SwitchPreferenceCompat 114 android:key="vibrate_input_devices" 115 android:title="@string/vibrate_input_devices" 116 android:summary="@string/vibrate_input_devices_summary" 117 settings:controller="com.android.settings.inputmethod.GameControllerPreferenceController" /> 118 119 <com.android.settings.widget.WorkOnlyCategory 120 android:key="language_and_input_for_work_category" 121 android:title="@string/language_and_input_for_work_category_title" 122 settings:searchable="false"> 123 124 <Preference 125 android:key="spellcheckers_settings_for_work_pref" 126 android:title="@string/spellcheckers_settings_for_work_title" 127 android:fragment="com.android.settings.inputmethod.SpellCheckersSettings" 128 settings:forWork="true" 129 settings:controller="com.android.settings.core.WorkPreferenceController" /> 130 131 <Preference 132 android:key="user_dictionary_settings_for_work_pref" 133 android:title="@string/user_dict_settings_for_work_title" 134 android:fragment="com.android.settings.inputmethod.UserDictionaryList" 135 settings:forWork="true" 136 settings:controller="com.android.settings.inputmethod.SpellCheckerForWorkPreferenceController" /> 137 </com.android.settings.widget.WorkOnlyCategory> 138 139</PreferenceScreen> 140