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