1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 ** 5 ** Copyright 2011, 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> 22 <style name="KeyboardTheme.GB" parent="KeyboardIcons.GB"> 23 <item name="keyboardStyle">@style/Keyboard.GB</item> 24 <item name="keyboardViewStyle">@style/KeyboardView.GB</item> 25 <item name="mainKeyboardViewStyle">@style/MainKeyboardView.GB</item> 26 <item name="emojiPalettesViewStyle">@style/EmojiPalettesView.GB</item> 27 <item name="moreKeysKeyboardStyle">@style/MoreKeysKeyboard.GB</item> 28 <item name="moreKeysKeyboardViewStyle">@style/MoreKeysKeyboardView.GB</item> 29 <item name="moreKeysKeyboardContainerStyle">@style/MoreKeysKeyboardContainer.GB</item> 30 <item name="suggestionStripViewStyle">@style/SuggestionStripView.GB</item> 31 <item name="suggestionWordStyle">@style/SuggestionWord.GB</item> 32 </style> 33 <style name="KeyboardIcons.GB"> 34 <!-- Keyboard icons --> 35 <item name="iconShiftKey">@drawable/sym_keyboard_shift_holo_dark</item> 36 <item name="iconDeleteKey">@drawable/sym_keyboard_delete_holo_dark</item> 37 <item name="iconSettingsKey">@drawable/sym_keyboard_settings_holo_dark</item> 38 <item name="iconSpaceKey">@drawable/sym_keyboard_space_holo_dark</item> 39 <item name="iconEnterKey">@drawable/sym_keyboard_return_holo_dark</item> 40 <item name="iconSearchKey">@drawable/sym_keyboard_search_holo_dark</item> 41 <item name="iconTabKey">@drawable/sym_keyboard_tab_holo_dark</item> 42 <item name="iconShortcutKey">@drawable/sym_keyboard_mic_holo_dark</item> 43 <item name="iconShortcutForLabel">@drawable/sym_keyboard_label_mic_holo_dark</item> 44 <item name="iconSpaceKeyForNumberLayout">@drawable/sym_keyboard_space</item> 45 <item name="iconShiftKeyShifted">@drawable/sym_keyboard_shift_locked_holo_dark</item> 46 <!-- TODO: Needs non-holo disabled shortcut icon drawable --> 47 <item name="iconShortcutKeyDisabled">@drawable/sym_keyboard_voice_off_holo_dark</item> 48 <item name="iconTabKeyPreview">@drawable/sym_keyboard_feedback_tab</item> 49 <item name="iconLanguageSwitchKey">@drawable/sym_keyboard_language_switch_dark</item> 50 <!-- TODO: Needs dedicated black theme ZWNJ and ZWJ icons --> 51 <item name="iconZwnjKey">@drawable/sym_keyboard_zwnj_holo_dark</item> 52 <item name="iconZwjKey">@drawable/sym_keyboard_zwj_holo_dark</item> 53 <item name="iconEmojiKey">@drawable/sym_keyboard_smiley_holo_dark</item> 54 </style> 55 <style 56 name="Keyboard.GB" 57 parent="Keyboard" 58 > 59 <!-- This should be aligned with KeyboardSwitcher.KEYBOARD_THEMES[] --> 60 <item name="themeId">1</item> 61 <item name="touchPositionCorrectionData">@array/touch_position_correction_data_gb</item> 62 <item name="keyboardTopPadding">@fraction/keyboard_top_padding_gb</item> 63 <item name="keyboardBottomPadding">@fraction/keyboard_bottom_padding_gb</item> 64 <item name="horizontalGap">@fraction/key_horizontal_gap_gb</item> 65 <item name="verticalGap">@fraction/key_bottom_gap_gb</item> 66 </style> 67 <style 68 name="KeyboardView.GB" 69 parent="KeyboardView" 70 > 71 <item name="android:background">@drawable/keyboard_background_gb</item> 72 <item name="keyBackground">@drawable/btn_keyboard_key_gb</item> 73 <item name="keyTypeface">bold</item> 74 <item name="keyTextColor">@color/key_text_color_gb</item> 75 <item name="keyTextInactivatedColor">@color/key_text_inactivated_color_gb</item> 76 <item name="keyHintLetterColor">@color/key_hint_letter_color_gb</item> 77 <item name="keyHintLabelColor">@color/key_hint_label_color_gb</item> 78 <item name="keyShiftedLetterHintInactivatedColor">@color/key_shifted_letter_hint_inactivated_color_gb</item> 79 <item name="keyShiftedLetterHintActivatedColor">@color/key_shifted_letter_hint_activated_color_gb</item> 80 <item name="keyPreviewTextColor">@color/key_text_color_gb</item> 81 <item name="keyTextShadowColor">@color/key_text_shadow_color_gb</item> 82 <item name="keyTextShadowRadius">2.75</item> 83 </style> 84 <style 85 name="MainKeyboardView.GB" 86 parent="KeyboardView.GB" 87 > 88 <item name="keyPreviewLayout">@layout/key_preview_gb</item> 89 <item name="keyPreviewOffset">@dimen/key_preview_offset_gb</item> 90 <item name="gestureFloatingPreviewTextColor">@color/highlight_color_gb</item> 91 <item name="gestureFloatingPreviewColor">@color/gesture_floating_preview_color_gb</item> 92 <item name="gestureTrailColor">@color/highlight_color_gb</item> 93 <item name="slidingKeyInputPreviewColor">@color/highlight_translucent_color_gb</item> 94 <item name="autoCorrectionSpacebarLedEnabled">true</item> 95 <item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led_gb</item> 96 <item name="spacebarTextColor">@color/spacebar_text_color_gb</item> 97 <item name="spacebarTextShadowColor">@color/spacebar_text_shadow_color_gb</item> 98 </style> 99 <!-- Though {@link EmojiPalettesView} doesn't extend {@link KeyboardView}, some views inside it, 100 for instance delete button, need themed {@link KeyboardView} attributes. --> 101 <style 102 name="EmojiPalettesView.GB" 103 parent="KeyboardView.GB" 104 > 105 <item name="keyBackground">@drawable/btn_keyboard_key_functional_gb</item> 106 <item name="emojiTabLabelColor">@color/emoji_tab_label_color_gb</item> 107 </style> 108 <style 109 name="MoreKeysKeyboard.GB" 110 parent="Keyboard.GB" 111 > 112 <item name="keyboardTopPadding">0%p</item> 113 <item name="keyboardBottomPadding">0%p</item> 114 <item name="horizontalGap">0%p</item> 115 <item name="touchPositionCorrectionData">@null</item> 116 </style> 117 <style 118 name="MoreKeysKeyboardView.GB" 119 parent="KeyboardView.GB" 120 > 121 <item name="android:background">@null</item> 122 <item name="keyBackground">@drawable/btn_keyboard_key_popup_gb</item> 123 <item name="keyTypeface">normal</item> 124 <item name="verticalCorrection">@dimen/more_keys_keyboard_vertical_correction_gb</item> 125 </style> 126 <style 127 name="MoreKeysKeyboardContainer.GB" 128 > 129 <item name="android:background">@drawable/keyboard_popup_panel_background_gb</item> 130 </style> 131 <style 132 name="SuggestionStripView.GB" 133 parent="SuggestionStripView" 134 > 135 <item name="android:background">@drawable/keyboard_suggest_strip_gb</item> 136 <item name="suggestionStripOption">autoCorrectBold|validTypedWordBold</item> 137 <item name="colorValidTypedWord">@color/highlight_color_gb</item> 138 <item name="colorTypedWord">@color/typed_word_color_gb</item> 139 <item name="colorAutoCorrect">@color/highlight_color_gb</item> 140 <item name="colorSuggested">@color/highlight_color_gb</item> 141 <item name="alphaObsoleted">50%</item> 142 </style> 143 <style name="SuggestionWord.GB"> 144 <item name="android:background">@drawable/btn_suggestion_gb</item> 145 </style> 146 </resources> 147