1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 ** 5 ** Copyright 2013, The Android Open Source Project 6 ** 7 ** Licensed under the Apache License, Version 2.0 (the "License"); 8 ** you may not use this file except in compliance with the License. 9 ** You may obtain a copy of the License at 10 ** 11 ** http://www.apache.org/licenses/LICENSE-2.0 12 ** 13 ** Unless required by applicable law or agreed to in writing, software 14 ** distributed under the License is distributed on an "AS IS" BASIS, 15 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 ** See the License for the specific language governing permissions and 17 ** limitations under the License. 18 */ 19 --> 20 21 <resources xmlns:android="http://schemas.android.com/apk/res/android"> 22 <style name="KeyboardIcons" /> 23 <style name="InputView" /> 24 <!-- Default theme values --> 25 <style name="Keyboard"> 26 <item name="rowHeight">25%p</item> 27 <item name="horizontalGap">@fraction/config_key_horizontal_gap_holo</item> 28 <item name="verticalGap">@fraction/config_key_vertical_gap_holo</item> 29 <item name="touchPositionCorrectionData">@array/touch_position_correction_data_holo</item> 30 <item name="keyboardTopPadding">@fraction/config_keyboard_top_padding_holo</item> 31 <item name="keyboardBottomPadding">@fraction/config_keyboard_bottom_padding_holo</item> 32 <item name="keyboardLeftPadding">@fraction/config_keyboard_left_padding</item> 33 <item name="keyboardRightPadding">@fraction/config_keyboard_right_padding</item> 34 <item name="moreKeysTemplate">@xml/kbd_more_keys_keyboard_template</item> 35 <item name="maxMoreKeysColumn">@integer/config_max_more_keys_column</item> 36 </style> 37 <style name="KeyboardView"> 38 <!-- This keyBackground is needed to run unit tests based on {@link InputTestBase}. --> 39 <!-- TODO: Apply default {@link KeyboardTheme} to {@link InputTestBase} and remove this. --> 40 <item name="keyBackground">@drawable/btn_keyboard_key_klp</item> 41 <item name="keyTypeface">normal</item> 42 <!-- A negative value to disable key text shadow layer. --> 43 <item name="keyTextShadowRadius">-1.0</item> 44 <item name="keyHintLetterPadding">@dimen/config_key_hint_letter_padding</item> 45 <item name="keyPopupHintLetterPadding">@dimen/config_key_popup_hint_letter_padding</item> 46 <item name="keyShiftedLetterHintPadding">@dimen/config_key_shifted_letter_hint_padding</item> 47 <item name="keyPreviewTextRatio">@fraction/config_key_preview_text_ratio</item> 48 <item name="verticalCorrection">@dimen/config_keyboard_vertical_correction</item> 49 <item name="backgroundDimAlpha">128</item> 50 <item name="gestureFloatingPreviewTextSize">@dimen/config_gesture_floating_preview_text_size</item> 51 <item name="gestureFloatingPreviewTextOffset">@dimen/config_gesture_floating_preview_text_offset</item> 52 <item name="gestureFloatingPreviewHorizontalPadding">@dimen/config_gesture_floating_preview_horizontal_padding</item> 53 <item name="gestureFloatingPreviewVerticalPadding">@dimen/config_gesture_floating_preview_vertical_padding</item> 54 <item name="gestureFloatingPreviewRoundRadius">@dimen/config_gesture_floating_preview_round_radius</item> 55 <item name="gestureTrailMinSamplingDistance">@dimen/config_gesture_trail_min_sampling_distance</item> 56 <item name="gestureTrailMaxInterpolationAngularThreshold">@integer/config_gesture_trail_max_interpolation_angular_threshold</item> 57 <item name="gestureTrailMaxInterpolationDistanceThreshold">@dimen/config_gesture_trail_max_interpolation_distance_threshold</item> 58 <item name="gestureTrailMaxInterpolationSegments">@integer/config_gesture_trail_max_interpolation_segments</item> 59 <item name="gestureTrailFadeoutStartDelay">@integer/config_gesture_trail_fadeout_start_delay</item> 60 <item name="gestureTrailFadeoutDuration">@integer/config_gesture_trail_fadeout_duration</item> 61 <item name="gestureTrailUpdateInterval">@integer/config_gesture_trail_update_interval</item> 62 <item name="gestureTrailStartWidth">@dimen/config_gesture_trail_start_width</item> 63 <item name="gestureTrailEndWidth">@dimen/config_gesture_trail_end_width</item> 64 <item name="gestureTrailBodyRatio">@integer/config_gesture_trail_body_ratio</item> 65 <item name="gestureTrailShadowRatio">@integer/config_gesture_trail_shadow_ratio</item> 66 <!-- Common attributes of MainKeyboardView --> 67 <item name="keyHysteresisDistance">@dimen/config_key_hysteresis_distance</item> 68 <item name="keyHysteresisDistanceForSlidingModifier">@dimen/config_key_hysteresis_distance_for_sliding_modifier</item> 69 <item name="touchNoiseThresholdTime">@integer/config_touch_noise_threshold_time</item> 70 <item name="touchNoiseThresholdDistance">@dimen/config_touch_noise_threshold_distance</item> 71 <item name="keySelectionByDraggingFinger">@bool/config_key_selection_by_dragging_finger</item> 72 <item name="slidingKeyInputPreviewWidth">@dimen/config_sliding_key_input_preview_width</item> 73 <item name="slidingKeyInputPreviewBodyRatio">@integer/config_sliding_key_input_preview_body_ratio</item> 74 <item name="slidingKeyInputPreviewShadowRatio">@integer/config_sliding_key_input_preview_shadow_ratio</item> 75 <item name="keyRepeatStartTimeout">@integer/config_key_repeat_start_timeout</item> 76 <item name="keyRepeatInterval">@integer/config_key_repeat_interval</item> 77 <item name="longPressShiftLockTimeout">@integer/config_longpress_shift_lock_timeout</item> 78 <item name="ignoreAltCodeKeyTimeout">@integer/config_ignore_alt_code_key_timeout</item> 79 <!-- TODO: consolidate key preview linger timeout with the key preview animation parameters. --> 80 <item name="keyPreviewLingerTimeout">@integer/config_key_preview_linger_timeout</item> 81 <item name="moreKeysKeyboardLayout">@layout/more_keys_keyboard</item> 82 <item name="showMoreKeysKeyboardAtTouchedPoint">@bool/config_show_more_keys_keyboard_at_touched_point</item> 83 <item name="languageOnSpacebarTextRatio">@fraction/config_language_on_spacebar_text_ratio</item> 84 <item name="languageOnSpacebarFinalAlpha">@integer/config_language_on_spacebar_final_alpha</item> 85 <item name="languageOnSpacebarFadeoutAnimator">@anim/language_on_spacebar_fadeout</item> 86 <!-- Remove animations for now because it could drain a non-negligible amount of battery while typing. 87 <item name="altCodeKeyWhileTypingFadeoutAnimator">@anim/alt_code_key_while_typing_fadeout</item> 88 <item name="altCodeKeyWhileTypingFadeinAnimator">@anim/alt_code_key_while_typing_fadein</item> 89 --> 90 <!-- Common attributes of MainKeyboardView for gesture typing detection and recognition --> 91 <item name="gestureFloatingPreviewTextLingerTimeout">@integer/config_gesture_floating_preview_text_linger_timeout</item> 92 <item name="gestureStaticTimeThresholdAfterFastTyping">@integer/config_gesture_static_time_threshold_after_fast_typing</item> 93 <item name="gestureDetectFastMoveSpeedThreshold">@fraction/config_gesture_detect_fast_move_speed_threshold</item> 94 <item name="gestureDynamicThresholdDecayDuration">@integer/config_gesture_dynamic_threshold_decay_duration</item> 95 <item name="gestureDynamicTimeThresholdFrom">@integer/config_gesture_dynamic_time_threshold_from</item> 96 <item name="gestureDynamicTimeThresholdTo">@integer/config_gesture_dynamic_time_threshold_to</item> 97 <item name="gestureDynamicDistanceThresholdFrom">@fraction/config_gesture_dynamic_distance_threshold_from</item> 98 <item name="gestureDynamicDistanceThresholdTo">@fraction/config_gesture_dynamic_distance_threshold_to</item> 99 <item name="gestureSamplingMinimumDistance">@fraction/config_gesture_sampling_minimum_distance</item> 100 <item name="gestureRecognitionMinimumTime">@integer/config_gesture_recognition_minimum_time</item> 101 <item name="gestureRecognitionUpdateTime">@integer/config_gesture_recognition_update_time</item> 102 <item name="gestureRecognitionSpeedThreshold">@fraction/config_gesture_recognition_speed_threshold</item> 103 <item name="suppressKeyPreviewAfterBatchInputDuration">@integer/config_suppress_key_preview_after_batch_input_duration</item> 104 </style> 105 <style 106 name="MainKeyboardView" 107 parent="KeyboardView" /> 108 <!-- Though {@link com.android.inputmethod.keyboard.emoji.EmojiPalettesView} doesn't extend 109 {@link com.android.inputmethod.keyboard.KeyboardView}, some views inside it, for instance 110 delete button, need themed {@link com.android.inputmethod.keyboard.KeyboardView} 111 attributes. --> 112 <style name="EmojiPalettesView" /> 113 <style name="MoreKeysKeyboard" /> 114 <style name="MoreKeysKeyboardView" /> 115 <style name="SuggestionStripView" /> 116 <style name="SuggestionWord"> 117 <item name="android:minWidth">@dimen/config_suggestion_min_width</item> 118 <item name="android:textSize">@dimen/config_suggestion_text_size</item> 119 <item name="android:gravity">center</item> 120 <item name="android:paddingLeft">@dimen/config_suggestion_text_horizontal_padding</item> 121 <item name="android:paddingTop">0dp</item> 122 <item name="android:paddingRight">@dimen/config_suggestion_text_horizontal_padding</item> 123 <item name="android:paddingBottom">0dp</item> 124 <!-- Provide audio and haptic feedback by ourselves based on the keyboard settings. 125 We just need to ignore the system's audio and haptic feedback settings. --> 126 <item name="android:hapticFeedbackEnabled">false</item> 127 <item name="android:soundEffectsEnabled">false</item> 128 <item name="android:focusable">false</item> 129 <item name="android:clickable">false</item> 130 <item name="android:singleLine">true</item> 131 <item name="android:ellipsize">none</item> 132 </style> 133 </resources> 134