Home | History | Annotate | Download | only in xml
      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     </PreferenceCategory>
     44 
     45     <PreferenceCategory
     46         android:key="input_assistance_category"
     47         android:title="@string/input_assistance">
     48         <!-- Spell checker preference title, summary and fragment will be set programmatically. -->
     49         <!-- Note: Mark this as persistent="false" to remove unnecessarily saved shared preference.
     50              See: InputMethodAndSubtypeUtil.removeUnnecessaryNonPersistentPreference. -->
     51         <Preference
     52             android:key="spellcheckers_settings"
     53             android:title="@string/spellcheckers_settings_title"
     54             android:persistent="false"
     55             android:fragment="com.android.settings.inputmethod.SpellCheckersSettings" />
     56 
     57         <com.android.settings.widget.GearPreference
     58             android:key="default_autofill"
     59             android:title="@string/autofill_app"
     60             android:fragment="com.android.settings.applications.defaultapps.DefaultAutofillPicker"
     61             settings:keywords="@string/autofill_keywords" />
     62 
     63         <!-- User dictionary preference title and fragment will be set programmatically. -->
     64         <Preference
     65             android:key="key_user_dictionary_settings"
     66             android:title="@string/user_dict_settings_title" />
     67     </PreferenceCategory>
     68 
     69     <PreferenceCategory
     70         android:key="pointer_and_tts_category"
     71         android:layout="@layout/preference_category_no_label">
     72 
     73         <com.android.settings.PointerSpeedPreference
     74             android:key="pointer_speed"
     75             android:title="@string/pointer_speed"
     76             android:dialogTitle="@string/pointer_speed" />
     77 
     78         <Preference
     79             android:key="tts_settings_summary"
     80             android:title="@string/tts_settings_title"
     81             android:fragment="com.android.settings.tts.TextToSpeechSettings" />
     82 
     83     </PreferenceCategory>
     84 
     85     <SwitchPreference
     86         android:key="vibrate_input_devices"
     87         android:title="@string/vibrate_input_devices"
     88         android:summary="@string/vibrate_input_devices_summary"
     89         settings:controller="com.android.settings.inputmethod.GameControllerPreferenceController" />
     90 
     91 </PreferenceScreen>
     92