The user dictionary interface now works the following way: * Locale gathering - The current locale is always considered as present, even if there are no words for it in the user dictionary. - Any locale for which at least one word is registered is considered present. - A null locale is considered a valid locale meaning "all languages". - If no words are present at all, since the current locale is always considered present, the system will consider there is exactly one locale present - and allow editing this user dictionary. * Options display - If only one locale is present, the interface is the same as for Honeycomb: display a "User dictionary" PreferenceScreen that brings up the dictionary editor interface. - If there are several locales present, then the user dictionary option will jump to a screen that will display a list of available locales. * Word insertion - Inserting a word will always use the locale of the currently displayed dictionary. If it is the "all languages" null pseudo-locale, that will still hold and the word will be added to this pseudo-locale. It is worthy to note that the "All languages" locale is only accessible if for some reason there are already words with a null locale in the database before this is installed. For example, if an application has inserted some words that way, or if the user inserted words with a previous version of the settings application. On a freshly flashed device, barring the use of third-party application that would add such words, it is not possible to access the "all languages" locale any more because there is no interface to do it, though it works if such words are inside. Bug: 3479738 Change-Id: Iba323e5aeb3f4f575896903a4e8bef6ffb3ea306
75 lines
3.3 KiB
XML
75 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2008 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
|
|
android:title="@string/language_keyboard_settings_title">
|
|
|
|
<PreferenceCategory android:key="language_settings_category"
|
|
android:title="@string/language_settings_category">
|
|
|
|
<PreferenceScreen
|
|
android:fragment="com.android.settings.LocalePicker"
|
|
android:key="phone_language"
|
|
android:title="@string/phone_language"/>
|
|
|
|
<!-- User dictionary preference title and fragment will be set programmatically. -->
|
|
<PreferenceScreen
|
|
android:key="key_user_dictionary_settings" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory android:key="voice_input_category"
|
|
android:title="@string/voice_input_category" >
|
|
|
|
<!-- entries, entryValues, and defaultValue will be populated programmatically. -->
|
|
<ListPreference
|
|
android:key="recognizer"
|
|
android:title="@string/recognizer_title"
|
|
android:dialogTitle="@string/recognizer_title" />
|
|
|
|
<!-- An intent for this preference will be populated programmatically. -->
|
|
<PreferenceScreen android:key="recognizer_settings"
|
|
android:title="@string/recognizer_settings_title" />
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory android:key="voice_output_category"
|
|
android:title="@string/voice_output_category" >
|
|
|
|
<PreferenceScreen android:key="tts_settings"
|
|
android:fragment="com.android.settings.TextToSpeechSettings"
|
|
android:title="@string/tts_settings_title" />
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory android:key="keyboard_settings_category"
|
|
android:title="@string/keyboard_settings_category">
|
|
<PreferenceScreen android:key="current_input_method"
|
|
android:title="@string/current_input_method" />
|
|
|
|
<ListPreference android:key="input_method_selector"
|
|
android:title="@string/input_method_selector"
|
|
android:persistent="true"
|
|
android:entryValues="@array/input_method_selector_values"
|
|
android:entries="@array/input_method_selector_titles"
|
|
android:defaultValue="@string/input_method_selector_visibility_default_value"/>
|
|
|
|
<PreferenceScreen android:key="configure_input_method"
|
|
android:title="@string/configure_input_method">
|
|
<intent android:action="android.settings.INPUT_METHOD_SETTINGS"/>
|
|
</PreferenceScreen>
|
|
</PreferenceCategory>
|
|
</PreferenceScreen>
|