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 <PreferenceCategory 22 android:title="@string/general_category" 23 android:key="general_settings"> 24 <CheckBoxPreference 25 android:key="auto_cap" 26 android:title="@string/auto_cap" 27 android:summary="@string/auto_cap_summary" 28 android:persistent="true" 29 android:defaultValue="true" /> 30 <CheckBoxPreference 31 android:key="vibrate_on" 32 android:title="@string/vibrate_on_keypress" 33 android:defaultValue="@bool/config_default_vibration_enabled" 34 android:persistent="true" /> 35 <CheckBoxPreference 36 android:key="sound_on" 37 android:title="@string/sound_on_keypress" 38 android:defaultValue="@bool/config_default_sound_enabled" 39 android:persistent="true" /> 40 <CheckBoxPreference 41 android:key="popup_on" 42 android:title="@string/popup_on_keypress" 43 android:persistent="true" 44 android:defaultValue="@bool/config_default_key_preview_popup" /> 45 <CheckBoxPreference 46 android:key="pref_voice_input_key" 47 android:title="@string/voice_input" 48 android:persistent="true" 49 android:defaultValue="true" /> 50 </PreferenceCategory> 51 <PreferenceCategory 52 android:title="@string/correction_category" 53 android:key="correction_settings"> 54 <PreferenceScreen 55 android:key="edit_personal_dictionary" 56 android:title="@string/edit_personal_dictionary"> 57 <intent android:action="android.settings.USER_DICTIONARY_SETTINGS" /> 58 </PreferenceScreen> 59 <PreferenceScreen 60 android:key="configure_dictionaries_key" 61 android:title="@string/configure_dictionaries_title"> 62 <intent 63 android:action="android.intent.action.MAIN" 64 android:targetClass="@string/dictionary_pack_settings_activity"> 65 <extra 66 android:name="clientId" 67 android:value="@string/dictionary_pack_client_id" /> 68 </intent> 69 </PreferenceScreen> 70 <CheckBoxPreference 71 android:key="pref_key_block_potentially_offensive" 72 android:title="@string/prefs_block_potentially_offensive_title" 73 android:summary="@string/prefs_block_potentially_offensive_summary" 74 android:persistent="true" 75 android:defaultValue="@bool/config_block_potentially_offensive" /> 76 <ListPreference 77 android:key="auto_correction_threshold" 78 android:title="@string/auto_correction" 79 android:summary="@string/auto_correction_summary" 80 android:persistent="true" 81 android:entryValues="@array/auto_correction_threshold_mode_indexes" 82 android:entries="@array/auto_correction_threshold_modes" 83 android:defaultValue="@string/auto_correction_threshold_mode_index_modest" /> 84 <ListPreference 85 android:key="show_suggestions_setting" 86 android:summary="@string/prefs_show_suggestions_summary" 87 android:title="@string/prefs_show_suggestions" 88 android:persistent="true" 89 android:entryValues="@array/prefs_suggestion_visibility_values" 90 android:entries="@array/prefs_suggestion_visibilities" 91 android:defaultValue="@string/prefs_suggestion_visibility_default_value" /> 92 </PreferenceCategory> 93 <PreferenceCategory 94 android:title="@string/gesture_typing_category" 95 android:key="gesture_typing_settings"> 96 <CheckBoxPreference 97 android:key="gesture_input" 98 android:title="@string/gesture_input" 99 android:summary="@string/gesture_input_summary" 100 android:persistent="true" 101 android:defaultValue="true" /> 102 <!-- TODO: Move these two options to the advanced settings. --> 103 <CheckBoxPreference 104 android:key="pref_gesture_floating_preview_text" 105 android:dependency="gesture_input" 106 android:title="@string/gesture_floating_preview_text" 107 android:summary="@string/gesture_floating_preview_text_summary" 108 android:persistent="true" 109 android:defaultValue="true" /> 110 <CheckBoxPreference 111 android:key="pref_gesture_preview_trail" 112 android:dependency="gesture_input" 113 android:title="@string/gesture_preview_trail" 114 android:persistent="true" 115 android:defaultValue="true" /> 116 </PreferenceCategory> 117 <PreferenceCategory 118 android:title="@string/misc_category" 119 android:key="misc_settings"> 120 <CheckBoxPreference 121 android:key="next_word_prediction" 122 android:title="@string/bigram_prediction" 123 android:summary="@string/bigram_prediction_summary" 124 android:persistent="true" 125 android:defaultValue="true" /> 126 <PreferenceScreen 127 android:key="pref_advanced_settings" 128 android:title="@string/advanced_settings" 129 android:summary="@string/advanced_settings_summary"> 130 <CheckBoxPreference 131 android:key="pref_key_use_contacts_dict" 132 android:title="@string/use_contacts_dict" 133 android:summary="@string/use_contacts_dict_summary" 134 android:persistent="true" 135 android:defaultValue="true" /> 136 <CheckBoxPreference 137 android:key="pref_key_use_double_space_period" 138 android:title="@string/use_double_space_period" 139 android:summary="@string/use_double_space_period_summary" 140 android:persistent="true" 141 android:defaultValue="true" /> 142 <CheckBoxPreference 143 android:key="pref_show_language_switch_key" 144 android:title="@string/show_language_switch_key" 145 android:summary="@string/show_language_switch_key_summary" 146 android:persistent="true" 147 android:defaultValue="true" /> 148 <CheckBoxPreference 149 android:key="pref_include_other_imes_in_language_switch_list" 150 android:title="@string/include_other_imes_in_language_switch_list" 151 android:summary="@string/include_other_imes_in_language_switch_list_summary" 152 android:persistent="true" 153 android:defaultValue="false" /> 154 <!-- Values for popup dismiss delay are added programmatically --> 155 <CheckBoxPreference 156 android:key="pref_sliding_key_input_preview" 157 android:title="@string/sliding_key_input_preview" 158 android:summary="@string/sliding_key_input_preview_summary" 159 android:persistent="true" 160 android:defaultValue="true" /> 161 <ListPreference 162 android:key="pref_keyboard_layout_20110916" 163 android:title="@string/keyboard_color_scheme" 164 android:persistent="true" 165 android:entryValues="@array/keyboard_color_schemes_values" 166 android:entries="@array/keyboard_color_schemes" 167 android:defaultValue="@string/config_default_keyboard_theme_index" /> 168 <PreferenceScreen 169 android:fragment="com.android.inputmethod.latin.settings.AdditionalSubtypeSettings" 170 android:key="custom_input_styles" 171 android:title="@string/custom_input_styles_title" /> 172 <ListPreference 173 android:key="pref_key_preview_popup_dismiss_delay" 174 android:title="@string/key_preview_popup_dismiss_delay" /> 175 <com.android.inputmethod.latin.settings.SeekBarDialogPreference 176 android:key="pref_key_longpress_timeout" 177 android:title="@string/prefs_key_longpress_timeout_settings" 178 latin:minValue="@integer/config_min_longpress_timeout" 179 latin:maxValue="@integer/config_max_longpress_timeout" 180 latin:stepValue="@integer/config_longpress_timeout_step" /> 181 <com.android.inputmethod.latin.settings.SeekBarDialogPreference 182 android:key="pref_vibration_duration_settings" 183 android:title="@string/prefs_keypress_vibration_duration_settings" 184 latin:maxValue="@integer/config_max_vibration_duration" /> 185 <com.android.inputmethod.latin.settings.SeekBarDialogPreference 186 android:key="pref_keypress_sound_volume" 187 android:title="@string/prefs_keypress_sound_volume_settings" 188 latin:maxValue="100" /> <!-- percent --> 189 <!-- The settigs for showing setup wizard application icon shouldn't be persistent and 190 the default value is added programmatically. --> 191 <CheckBoxPreference 192 android:key="pref_show_setup_wizard_icon" 193 android:title="@string/show_setup_wizard_icon" 194 android:summary="@string/show_setup_wizard_icon_summary" /> 195 </PreferenceScreen> 196 <PreferenceScreen 197 android:key="send_feedback" 198 android:title="@string/send_feedback" /> 199 <PreferenceScreen 200 android:key="about_keyboard" /> 201 <PreferenceScreen 202 android:key="debug_settings" 203 android:title="Debug settings" 204 android:persistent="true" 205 android:defaultValue="false" /> 206 </PreferenceCategory> 207 </PreferenceScreen> 208