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:key="language_and_input_settings_screen" 22 android:title="@string/language_settings" 23 settings:initialExpandedChildrenCount="3"> 24 25 <Preference 26 android:key="phone_language" 27 android:title="@string/phone_language" 28 android:icon="@drawable/ic_translate_24dp" 29 android:fragment="com.android.settings.localepicker.LocaleListEditor" /> 30 31 <PreferenceCategory 32 android:key="keyboards_category" 33 android:title="@string/keyboard_and_input_methods_category"> 34 <Preference 35 android:key="virtual_keyboard_pref" 36 android:title="@string/virtual_keyboard_category" 37 android:fragment="com.android.settings.inputmethod.VirtualKeyboardFragment" /> 38 <Preference 39 android:key="physical_keyboard_pref" 40 android:title="@string/physical_keyboard_title" 41 android:summary="@string/summary_placeholder" 42 android:fragment="com.android.settings.inputmethod.PhysicalKeyboardFragment" 43 settings:searchable="false"/> 44 </PreferenceCategory> 45 46 <PreferenceCategory 47 android:key="input_assistance_category" 48 android:title="@string/input_assistance"> 49 <!-- Spell checker preference title, summary and fragment will be set programmatically. --> 50 <!-- Note: Mark this as persistent="false" to remove unnecessarily saved shared preference. 51 See: InputMethodAndSubtypeUtil.removeUnnecessaryNonPersistentPreference. --> 52 <Preference 53 android:key="spellcheckers_settings" 54 android:title="@string/spellcheckers_settings_title" 55 android:persistent="false" 56 android:fragment="com.android.settings.inputmethod.SpellCheckersSettings" /> 57 58 <Preference 59 android:key="default_autofill" 60 android:title="@string/autofill_app" 61 android:fragment="com.android.settings.applications.defaultapps.AutofillPicker" 62 settings:keywords="@string/autofill_keywords" /> 63 64 <!-- User dictionary preference title and fragment will be set programmatically. --> 65 <Preference 66 android:key="key_user_dictionary_settings" 67 android:title="@string/user_dict_settings_title" 68 android:fragment="com.android.settings.inputmethod.UserDictionaryList" 69 settings:controller="com.android.settings.language.UserDictionaryPreferenceController" /> 70 </PreferenceCategory> 71 72 <PreferenceCategory 73 android:key="pointer_and_tts_category" 74 android:layout="@layout/preference_category_no_label"> 75 76 <com.android.settings.PointerSpeedPreference 77 android:key="pointer_speed" 78 android:title="@string/pointer_speed" 79 android:dialogTitle="@string/pointer_speed" /> 80 81 <Preference 82 android:key="tts_settings_summary" 83 android:title="@string/tts_settings_title" 84 android:fragment="com.android.settings.tts.TextToSpeechSettings" 85 settings:searchable="false"/> 86 87 </PreferenceCategory> 88 89 <SwitchPreference 90 android:key="vibrate_input_devices" 91 android:title="@string/vibrate_input_devices" 92 android:summary="@string/vibrate_input_devices_summary" 93 settings:controller="com.android.settings.inputmethod.GameControllerPreferenceController" /> 94 95 <com.android.settings.widget.WorkOnlyCategory 96 android:key="language_and_input_for_work_category" 97 android:title="@string/language_and_input_for_work_category_title" 98 settings:searchable="false"> 99 100 <Preference 101 android:key="virtual_keyboards_for_work_pref" 102 android:title="@string/virtual_keyboards_for_work_title" 103 android:fragment="com.android.settings.inputmethod.VirtualKeyboardFragment" 104 settings:controller="com.android.settings.inputmethod.VirtualKeyboardForWorkPreferenceController" /> 105 106 <Preference 107 android:key="spellcheckers_settings_for_work_pref" 108 android:title="@string/spellcheckers_settings_for_work_title" 109 android:fragment="com.android.settings.inputmethod.SpellCheckersSettings" 110 settings:controller="com.android.settings.language.UserDictionaryForWorkPreferenceController" /> 111 112 <Preference 113 android:key="user_dictionary_settings_for_work_pref" 114 android:title="@string/user_dict_settings_for_work_title" 115 android:fragment="com.android.settings.inputmethod.UserDictionaryList" 116 settings:controller="com.android.settings.inputmethod.SpellCheckerForWorkPreferenceController" /> 117 </com.android.settings.widget.WorkOnlyCategory> 118 119</PreferenceScreen> 120