1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2022 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/keyboard_settings"> 22 <PreferenceCategory 23 android:key="keyboards_category"> 24 <Preference 25 android:key="virtual_keyboard_pref" 26 android:title="@string/virtual_keyboard_category" 27 android:fragment="com.android.settings.inputmethod.AvailableVirtualKeyboardFragment" 28 settings:keywords="@string/keywords_virtual_keyboard"/> 29 30 <Preference 31 android:key="physical_keyboard_pref" 32 android:title="@string/physical_keyboard_title" 33 android:summary="@string/summary_placeholder"/> 34 </PreferenceCategory> 35 36 <PreferenceCategory 37 android:key="input_assistance_category" 38 android:title="@string/input_assistance"> 39 <!-- Spell checker preference title, summary and fragment will be set programmatically. --> 40 <!-- Note: Mark this as persistent="false" to remove unnecessarily saved shared preference. 41 See: InputMethodAndSubtypeUtil.removeUnnecessaryNonPersistentPreference. --> 42 <Preference 43 android:key="spellcheckers_settings" 44 android:title="@string/spellcheckers_settings_title" 45 android:persistent="false" 46 android:fragment="com.android.settings.inputmethod.SpellCheckersSettings" /> 47 48 <!-- User dictionary preference title and fragment will be set programmatically. --> 49 <Preference 50 android:key="key_user_dictionary_settings" 51 android:title="@string/user_dict_settings_title" 52 android:summary="@string/user_dict_settings_summary" 53 android:fragment="com.android.settings.inputmethod.UserDictionaryList" 54 settings:controller="com.android.settings.language.UserDictionaryPreferenceController" /> 55 </PreferenceCategory> 56 57 <PreferenceCategory 58 android:key="pointer_category" 59 android:layout="@layout/preference_category_no_label"> 60 <com.android.settings.PointerSpeedPreference 61 android:key="pointer_speed" 62 android:title="@string/pointer_speed" 63 android:dialogTitle="@string/pointer_speed" /> 64 </PreferenceCategory> 65 66 <SwitchPreferenceCompat 67 android:key="vibrate_input_devices" 68 android:title="@string/vibrate_input_devices" 69 android:summary="@string/vibrate_input_devices_summary" 70 settings:controller="com.android.settings.inputmethod.GameControllerPreferenceController" /> 71 72 <com.android.settings.widget.WorkOnlyCategory 73 android:key="language_and_input_for_work_category" 74 android:title="@string/language_and_input_for_work_category_title" 75 settings:searchable="false"> 76 77 <Preference 78 android:key="spellcheckers_settings_for_work_pref" 79 android:title="@string/spellcheckers_settings_for_work_title" 80 android:fragment="com.android.settings.inputmethod.SpellCheckersSettings" 81 settings:forWork="true" 82 settings:controller="com.android.settings.core.WorkPreferenceController" /> 83 84 <Preference 85 android:key="user_dictionary_settings_for_work_pref" 86 android:title="@string/user_dict_settings_for_work_title" 87 android:fragment="com.android.settings.inputmethod.UserDictionaryList" 88 settings:forWork="true" 89 settings:controller="com.android.settings.inputmethod.SpellCheckerForWorkPreferenceController" /> 90 </com.android.settings.widget.WorkOnlyCategory> 91</PreferenceScreen>