Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 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 | */ |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 19 | --> |
| 20 | |
| 21 | <resources> |
Tadashi G. Takaoka | 08323cd | 2013-08-27 15:15:44 +0900 | [diff] [blame] | 22 | <style name="KeyboardTheme.GB" parent="KeyboardIcons.GB"> |
Tadashi G. Takaoka | adaaf9f | 2013-08-27 13:01:20 +0900 | [diff] [blame] | 23 | <item name="keyboardStyle">@style/Keyboard.GB</item> |
| 24 | <item name="keyboardViewStyle">@style/KeyboardView.GB</item> |
| 25 | <item name="mainKeyboardViewStyle">@style/MainKeyboardView.GB</item> |
Tadashi G. Takaoka | d189d2a | 2013-08-26 17:30:23 +0900 | [diff] [blame] | 26 | <item name="emojiKeyboardViewStyle">@style/EmojiKeyboardView.GB</item> |
Tadashi G. Takaoka | adaaf9f | 2013-08-27 13:01:20 +0900 | [diff] [blame] | 27 | <item name="moreKeysKeyboardStyle">@style/MoreKeysKeyboard.GB</item> |
| 28 | <item name="moreKeysKeyboardViewStyle">@style/MoreKeysKeyboardView.GB</item> |
Tadashi G. Takaoka | 0861d67 | 2013-08-28 15:59:49 +0900 | [diff] [blame] | 29 | <item name="moreKeysKeyboardContainerStyle">@style/MoreKeysKeyboardContainer.GB</item> |
Tadashi G. Takaoka | 26d3644 | 2013-08-27 17:29:34 +0900 | [diff] [blame] | 30 | <item name="suggestionStripViewStyle">@style/SuggestionStripView.GB</item> |
Tadashi G. Takaoka | 0861d67 | 2013-08-28 15:59:49 +0900 | [diff] [blame] | 31 | <item name="suggestionWordStyle">@style/SuggestionWord.GB</item> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 32 | </style> |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 33 | <style name="KeyboardIcons.GB"> |
| 34 | <!-- Keyboard icons --> |
| 35 | <item name="iconShiftKey">@drawable/sym_keyboard_shift</item> |
| 36 | <item name="iconDeleteKey">@drawable/sym_keyboard_delete</item> |
| 37 | <item name="iconSettingsKey">@drawable/sym_keyboard_settings</item> |
| 38 | <item name="iconSpaceKey">@drawable/sym_keyboard_space</item> |
| 39 | <item name="iconEnterKey">@drawable/sym_keyboard_return</item> |
| 40 | <item name="iconSearchKey">@drawable/sym_keyboard_search</item> |
| 41 | <item name="iconTabKey">@drawable/sym_keyboard_tab</item> |
| 42 | <item name="iconShortcutKey">@drawable/sym_keyboard_mic</item> |
| 43 | <item name="iconShortcutForLabel">@drawable/sym_keyboard_label_mic</item> |
| 44 | <item name="iconSpaceKeyForNumberLayout">@drawable/sym_keyboard_space</item> |
| 45 | <item name="iconShiftKeyShifted">@drawable/sym_keyboard_shift_locked</item> |
| 46 | <!-- TODO: Needs non-holo disabled shortcut icon drawable --> |
| 47 | <item name="iconShortcutKeyDisabled">@drawable/sym_keyboard_voice_off_holo</item> |
| 48 | <item name="iconTabKeyPreview">@drawable/sym_keyboard_feedback_tab</item> |
| 49 | <item name="iconLanguageSwitchKey">@drawable/sym_keyboard_language_switch</item> |
| 50 | <!-- TODO: Needs dedicated black theme ZWNJ and ZWJ icons --> |
| 51 | <item name="iconZwnjKey">@drawable/sym_keyboard_zwnj_holo</item> |
| 52 | <item name="iconZwjKey">@drawable/sym_keyboard_zwj_holo</item> |
Tadashi G. Takaoka | d189d2a | 2013-08-26 17:30:23 +0900 | [diff] [blame] | 53 | <item name="iconEmojiKey">@drawable/ic_emoji_light</item> |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 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> |
Satoshi Kataoka | 5169937 | 2013-08-30 10:28:01 +0000 | [diff] [blame] | 99 | <!-- Though {@link EmojiKeyboardView} doesn't extend {@link KeyboardView}, some views inside it, |
| 100 | for instance delete button, need themed {@link KeyboardView} attributes. --> |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 101 | <style |
Tadashi G. Takaoka | d189d2a | 2013-08-26 17:30:23 +0900 | [diff] [blame] | 102 | name="EmojiKeyboardView.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 |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 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 |
Tadashi G. Takaoka | 0861d67 | 2013-08-28 15:59:49 +0900 | [diff] [blame] | 127 | name="MoreKeysKeyboardContainer.GB" |
| 128 | > |
| 129 | <item name="android:background">@drawable/keyboard_popup_panel_background_gb</item> |
| 130 | </style> |
| 131 | <style |
Tadashi G. Takaoka | 26d3644 | 2013-08-27 17:29:34 +0900 | [diff] [blame] | 132 | name="SuggestionStripView.GB" |
| 133 | parent="SuggestionStripView" |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 134 | > |
Tadashi G. Takaoka | 0861d67 | 2013-08-28 15:59:49 +0900 | [diff] [blame] | 135 | <item name="android:background">@drawable/keyboard_suggest_strip_gb</item> |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 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> |
Tadashi G. Takaoka | 0861d67 | 2013-08-28 15:59:49 +0900 | [diff] [blame] | 143 | <style name="SuggestionWord.GB"> |
| 144 | <item name="android:background">@drawable/btn_suggestion_gb</item> |
| 145 | </style> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 146 | </resources> |