prefs.xml revision ab661e3ef886a36b02fe094864ae4be6a3260f71
1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2008 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<PreferenceScreen 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" 20 android:key="english_ime_settings"> 21 <PreferenceScreen 22 android:title="@string/settings_screen_input" 23 android:key="screen_input"> 24 <CheckBoxPreference 25 android:key="auto_cap" 26 android:title="@string/auto_cap" 27 android:summary="@string/auto_cap_summary" 28 android:defaultValue="true" 29 android:persistent="true" /> 30 <CheckBoxPreference 31 android:key="pref_key_use_double_space_period" 32 android:title="@string/use_double_space_period" 33 android:summary="@string/use_double_space_period_summary" 34 android:defaultValue="true" 35 android:persistent="true" /> 36 <CheckBoxPreference 37 android:key="vibrate_on" 38 android:title="@string/vibrate_on_keypress" 39 android:defaultValue="@bool/config_default_vibration_enabled" 40 android:persistent="true" /> 41 <CheckBoxPreference 42 android:key="sound_on" 43 android:title="@string/sound_on_keypress" 44 android:defaultValue="@bool/config_default_sound_enabled" 45 android:persistent="true" /> 46 <CheckBoxPreference 47 android:key="popup_on" 48 android:title="@string/popup_on_keypress" 49 android:defaultValue="@bool/config_default_key_preview_popup" 50 android:persistent="true" /> 51 <CheckBoxPreference 52 android:key="pref_voice_input_key" 53 android:title="@string/voice_input" 54 android:defaultValue="true" 55 android:persistent="true" /> 56 </PreferenceScreen> 57 <ListPreference 58 android:key="pref_keyboard_theme" 59 android:title="@string/keyboard_theme" 60 android:entryValues="@array/keyboard_theme_ids" 61 android:entries="@array/keyboard_theme_names" 62 android:persistent="true" /> 63 <PreferenceScreen 64 android:title="@string/settings_screen_multi_lingual" 65 android:key="screen_multi_lingual"> 66 <CheckBoxPreference 67 android:key="pref_show_language_switch_key" 68 android:title="@string/show_language_switch_key" 69 android:summary="@string/show_language_switch_key_summary" 70 android:defaultValue="true" 71 android:persistent="true" /> 72 <CheckBoxPreference 73 android:key="pref_include_other_imes_in_language_switch_list" 74 android:dependency="pref_show_language_switch_key" 75 android:title="@string/include_other_imes_in_language_switch_list" 76 android:summary="@string/include_other_imes_in_language_switch_list_summary" 77 android:defaultValue="false" 78 android:persistent="true" /> 79 <PreferenceScreen 80 android:fragment="com.android.inputmethod.latin.settings.AdditionalSubtypeSettings" 81 android:key="custom_input_styles" 82 android:title="@string/custom_input_styles_title" /> 83 </PreferenceScreen> 84 <PreferenceScreen 85 android:title="@string/settings_screen_gesture" 86 android:key="screen_gesture"> 87 <CheckBoxPreference 88 android:key="gesture_input" 89 android:title="@string/gesture_input" 90 android:summary="@string/gesture_input_summary" 91 android:defaultValue="true" 92 android:persistent="true" /> 93 <CheckBoxPreference 94 android:key="pref_gesture_floating_preview_text" 95 android:dependency="gesture_input" 96 android:title="@string/gesture_floating_preview_text" 97 android:summary="@string/gesture_floating_preview_text_summary" 98 android:defaultValue="true" 99 android:persistent="true" /> 100 <CheckBoxPreference 101 android:key="pref_gesture_preview_trail" 102 android:dependency="gesture_input" 103 android:title="@string/gesture_preview_trail" 104 android:defaultValue="true" 105 android:persistent="true" /> 106 <CheckBoxPreference 107 android:key="pref_gesture_space_aware" 108 android:dependency="gesture_input" 109 android:title="@string/gesture_space_aware" 110 android:summary="@string/gesture_space_aware_summary" 111 android:defaultValue="true" 112 android:persistent="true" /> 113 </PreferenceScreen> 114 <PreferenceScreen 115 android:title="@string/settings_screen_correction" 116 android:key="screen_correction"> 117 <PreferenceScreen 118 android:key="edit_personal_dictionary" 119 android:title="@string/edit_personal_dictionary"> 120 <intent android:action="android.settings.USER_DICTIONARY_SETTINGS" /> 121 </PreferenceScreen> 122 <PreferenceScreen 123 android:key="configure_dictionaries_key" 124 android:title="@string/configure_dictionaries_title"> 125 <intent 126 android:action="android.intent.action.MAIN" 127 android:targetClass="@string/dictionary_pack_settings_activity"> 128 <extra 129 android:name="clientId" 130 android:value="@string/dictionary_pack_client_id" /> 131 </intent> 132 </PreferenceScreen> 133 <CheckBoxPreference 134 android:key="pref_key_block_potentially_offensive" 135 android:title="@string/prefs_block_potentially_offensive_title" 136 android:summary="@string/prefs_block_potentially_offensive_summary" 137 android:defaultValue="@bool/config_block_potentially_offensive" 138 android:persistent="true" /> 139 <ListPreference 140 android:key="auto_correction_threshold" 141 android:title="@string/auto_correction" 142 android:summary="@string/auto_correction_summary" 143 android:entryValues="@array/auto_correction_threshold_mode_indexes" 144 android:entries="@array/auto_correction_threshold_modes" 145 android:defaultValue="@string/auto_correction_threshold_mode_index_modest" 146 android:persistent="true" /> 147 <CheckBoxPreference 148 android:key="show_suggestions" 149 android:summary="@string/prefs_show_suggestions_summary" 150 android:title="@string/prefs_show_suggestions" 151 android:defaultValue="true" 152 android:persistent="true" /> 153 <CheckBoxPreference 154 android:key="pref_key_use_personalized_dicts" 155 android:title="@string/use_personalized_dicts" 156 android:summary="@string/use_personalized_dicts_summary" 157 android:defaultValue="true" 158 android:persistent="true" /> 159 <CheckBoxPreference 160 android:key="pref_key_use_contacts_dict" 161 android:title="@string/use_contacts_dict" 162 android:summary="@string/use_contacts_dict_summary" 163 android:defaultValue="true" 164 android:persistent="true" /> 165 <CheckBoxPreference 166 android:key="next_word_prediction" 167 android:title="@string/bigram_prediction" 168 android:summary="@string/bigram_prediction_summary" 169 android:defaultValue="true" 170 android:persistent="true" /> 171 </PreferenceScreen> 172 <PreferenceScreen 173 android:title="@string/settings_screen_advanced" 174 android:key="screen_advanced"> 175 <!-- TODO: consolidate key preview dismiss delay with the key preview animation parameters. --> 176 <ListPreference 177 android:key="pref_key_preview_popup_dismiss_delay" 178 android:title="@string/key_preview_popup_dismiss_delay" /> 179 <com.android.inputmethod.latin.settings.SeekBarDialogPreference 180 android:key="pref_vibration_duration_settings" 181 android:title="@string/prefs_keypress_vibration_duration_settings" 182 latin:maxValue="@integer/config_max_vibration_duration" /> 183 <com.android.inputmethod.latin.settings.SeekBarDialogPreference 184 android:key="pref_keypress_sound_volume" 185 android:title="@string/prefs_keypress_sound_volume_settings" 186 latin:maxValue="100" /> <!-- percent --> 187 <!-- The settigs for showing setup wizard application icon shouldn't be persistent and 188 the default value is added programmatically. --> 189 <CheckBoxPreference 190 android:key="pref_show_setup_wizard_icon" 191 android:title="@string/show_setup_wizard_icon" 192 android:summary="@string/show_setup_wizard_icon_summary" /> 193 <!-- title will be set programmatically to embed application name --> 194 <CheckBoxPreference 195 android:key="pref_enable_metrics_logging" 196 android:summary="@string/enable_metrics_logging_summary" 197 android:defaultValue="true" 198 android:persistent="true" /> 199 <PreferenceScreen 200 android:fragment="com.android.inputmethod.latin.settings.DebugSettings" 201 android:key="screen_debug" 202 android:title="Debug settings" 203 android:defaultValue="false" 204 android:persistent="true" /> 205 </PreferenceScreen> 206</PreferenceScreen> 207