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