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 | ** |
Chieu Nguyen | 7674a65 | 2015-11-11 11:03:02 -0800 | [diff] [blame^] | 5 | ** Copyright 2015, The Android Open Source Project |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 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 | |
Tadashi G. Takaoka | 0861d67 | 2013-08-28 15:59:49 +0900 | [diff] [blame] | 21 | <resources xmlns:android="http://schemas.android.com/apk/res/android"> |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 22 | <style name="KeyboardTheme.KLP" parent="KeyboardIcons.Holo"> |
Tadashi G. Takaoka | 1548048 | 2014-10-07 15:11:43 +0900 | [diff] [blame] | 23 | <item name="inputViewStyle">@style/InputView.Holo</item> |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 24 | <item name="keyboardStyle">@style/Keyboard.KLP</item> |
| 25 | <item name="keyboardViewStyle">@style/KeyboardView.KLP</item> |
| 26 | <item name="mainKeyboardViewStyle">@style/MainKeyboardView.KLP</item> |
| 27 | <item name="emojiPalettesViewStyle">@style/EmojiPalettesView.KLP</item> |
| 28 | <item name="moreKeysKeyboardStyle">@style/MoreKeysKeyboard.KLP</item> |
Tadashi G. Takaoka | 0f33e61 | 2014-08-22 18:36:09 +0900 | [diff] [blame] | 29 | <!-- Note: KLP theme uses the same style for both general more keys and action more keys. --> |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 30 | <item name="moreKeysKeyboardViewStyle">@style/MoreKeysKeyboardView.KLP</item> |
Tadashi G. Takaoka | 0f33e61 | 2014-08-22 18:36:09 +0900 | [diff] [blame] | 31 | <item name="moreKeysKeyboardViewForActionStyle">@style/MoreKeysKeyboardView.KLP</item> |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 32 | <item name="suggestionStripViewStyle">@style/SuggestionStripView.KLP</item> |
| 33 | <item name="suggestionWordStyle">@style/SuggestionWord.KLP</item> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 34 | </style> |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 35 | <style |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 36 | name="Keyboard.KLP" |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 37 | parent="Keyboard" |
| 38 | > |
Tadashi G. Takaoka | 0af2472 | 2014-09-03 10:52:56 +0900 | [diff] [blame] | 39 | <!-- This should be aligned with KeyboardTheme.THEME_ID_* --> |
| 40 | <item name="themeId">KLP</item> |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 41 | </style> |
| 42 | <style |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 43 | name="KeyboardView.KLP" |
Tadashi G. Takaoka | 6dcdfcc | 2014-08-07 16:16:31 +0900 | [diff] [blame] | 44 | parent="KeyboardView.Holo" |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 45 | > |
Satoshi Kataoka | baa3121 | 2013-09-19 22:26:36 +0900 | [diff] [blame] | 46 | <item name="android:background">@drawable/keyboard_background_holo</item> |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 47 | <item name="keyBackground">@drawable/btn_keyboard_key_klp</item> |
Tadashi G. Takaoka | c1e6100 | 2014-05-14 15:30:37 +0900 | [diff] [blame] | 48 | <item name="functionalKeyBackground">@drawable/btn_keyboard_key_functional_klp</item> |
| 49 | <item name="spacebarBackground">@drawable/btn_keyboard_spacebar_klp</item> |
Tadashi G. Takaoka | d5e6044 | 2013-11-11 18:49:28 +0900 | [diff] [blame] | 50 | <item name="keyTextColor">@color/key_text_color_holo</item> |
| 51 | <item name="keyTextInactivatedColor">@color/key_text_inactivated_color_holo</item> |
Tadashi G. Takaoka | 37ec0fe | 2014-05-15 15:39:01 +0900 | [diff] [blame] | 52 | <item name="functionalTextColor">@color/key_text_color_holo</item> |
Tadashi G. Takaoka | d5e6044 | 2013-11-11 18:49:28 +0900 | [diff] [blame] | 53 | <item name="keyHintLetterColor">@color/key_hint_letter_color_holo</item> |
| 54 | <item name="keyHintLabelColor">@color/key_hint_label_color_holo</item> |
| 55 | <item name="keyShiftedLetterHintInactivatedColor">@color/key_shifted_letter_hint_inactivated_color_holo</item> |
| 56 | <item name="keyShiftedLetterHintActivatedColor">@color/key_shifted_letter_hint_activated_color_holo</item> |
| 57 | <item name="keyPreviewTextColor">@color/key_text_color_holo</item> |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 58 | </style> |
| 59 | <style |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 60 | name="MainKeyboardView.KLP" |
| 61 | parent="KeyboardView.KLP" |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 62 | > |
Tadashi G. Takaoka | 615f431 | 2014-06-17 17:42:36 -0700 | [diff] [blame] | 63 | <item name="keyPreviewBackground">@drawable/keyboard_key_feedback_klp</item> |
Tadashi G. Takaoka | 5b9a1e5 | 2014-09-08 14:12:48 +0900 | [diff] [blame] | 64 | <item name="keyPreviewHeight">@dimen/config_key_preview_height_holo</item> |
Ken Wakasa | 2fa3693 | 2013-12-13 17:09:16 +0900 | [diff] [blame] | 65 | <item name="keyPreviewOffset">@dimen/config_key_preview_offset_holo</item> |
Tadashi G. Takaoka | ac88f3d | 2014-09-01 18:26:34 +0900 | [diff] [blame] | 66 | <item name="keyPreviewShowUpAnimator">@anim/key_preview_show_up_holo</item> |
| 67 | <item name="keyPreviewDismissAnimator">@anim/key_preview_dismiss_holo</item> |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 68 | <item name="gestureFloatingPreviewTextColor">@color/highlight_color_klp</item> |
Tadashi G. Takaoka | d5e6044 | 2013-11-11 18:49:28 +0900 | [diff] [blame] | 69 | <item name="gestureFloatingPreviewColor">@color/gesture_floating_preview_color_holo</item> |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 70 | <item name="gestureTrailColor">@color/highlight_color_klp</item> |
| 71 | <item name="slidingKeyInputPreviewColor">@color/highlight_translucent_color_klp</item> |
Ken Wakasa | 2fa3693 | 2013-12-13 17:09:16 +0900 | [diff] [blame] | 72 | <item name="languageOnSpacebarTextColor">@color/spacebar_text_color_holo</item> |
Tadashi G. Takaoka | 41f9f1e | 2014-05-13 11:19:43 +0900 | [diff] [blame] | 73 | <item name="languageOnSpacebarTextShadowRadius">1.0</item> |
Ken Wakasa | 2fa3693 | 2013-12-13 17:09:16 +0900 | [diff] [blame] | 74 | <item name="languageOnSpacebarTextShadowColor">@color/spacebar_text_shadow_color_holo</item> |
Ken Wakasa | 2fa3693 | 2013-12-13 17:09:16 +0900 | [diff] [blame] | 75 | </style> |
Tadashi G. Takaoka | d3a4c51 | 2014-10-22 14:04:07 +0900 | [diff] [blame] | 76 | <!-- Though {@link com.android.inputmethod.keyboard.emoji.EmojiPalettesView} doesn't extend |
| 77 | {@link com.android.inputmethod.keyboard.KeyboardView}, some views inside it, for instance |
| 78 | delete button, need themed {@link com.android.inputmethod.keyboard.KeyboardView} |
| 79 | attributes. --> |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 80 | <style |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 81 | name="EmojiPalettesView.KLP" |
Tadashi G. Takaoka | c1e6100 | 2014-05-14 15:30:37 +0900 | [diff] [blame] | 82 | parent="MainKeyboardView.KLP" |
Tadashi G. Takaoka | d189d2a | 2013-08-26 17:30:23 +0900 | [diff] [blame] | 83 | > |
Tadashi G. Takaoka | 2782f97 | 2014-05-23 16:04:39 +0900 | [diff] [blame] | 84 | <item name="categoryIndicatorEnabled">true</item> |
| 85 | <item name="categoryIndicatorDrawable">@drawable/emoji_category_tab_selected_klp</item> |
| 86 | <item name="categoryIndicatorBackground">@drawable/emoji_category_tab_unselected_holo_dark</item> |
| 87 | <item name="categoryPageIndicatorColor">@color/highlight_color_klp</item> |
| 88 | <item name="categoryPageIndicatorBackground">@color/emoji_tab_page_indicator_background_holo</item> |
Tadashi G. Takaoka | 27ca9f1 | 2014-05-16 10:32:04 +0900 | [diff] [blame] | 89 | <item name="iconEmojiRecentsTab">@drawable/ic_emoji_recents_holo_dark</item> |
| 90 | <item name="iconEmojiCategory1Tab">@drawable/ic_emoji_people_holo_dark</item> |
| 91 | <item name="iconEmojiCategory2Tab">@drawable/ic_emoji_objects_holo_dark</item> |
| 92 | <item name="iconEmojiCategory3Tab">@drawable/ic_emoji_nature_holo_dark</item> |
| 93 | <item name="iconEmojiCategory4Tab">@drawable/ic_emoji_places_holo_dark</item> |
| 94 | <item name="iconEmojiCategory5Tab">@drawable/ic_emoji_symbols_holo_dark</item> |
| 95 | <item name="iconEmojiCategory6Tab">@drawable/ic_emoji_emoticons_holo_dark</item> |
Chieu Nguyen | 7674a65 | 2015-11-11 11:03:02 -0800 | [diff] [blame^] | 96 | <item name="iconEmojiCategory7Tab">@drawable/ic_emoji_flag_holo_dark</item> |
| 97 | <item name="iconEmojiCategory8Tab">@drawable/ic_emoji_people_holo_dark</item> |
| 98 | <item name="iconEmojiCategory9Tab">@drawable/ic_emoji_nature_holo_dark</item> |
| 99 | <item name="iconEmojiCategory10Tab">@drawable/ic_emoji_food_holo_dark</item> |
| 100 | <item name="iconEmojiCategory11Tab">@drawable/ic_emoji_places_holo_dark</item> |
| 101 | <item name="iconEmojiCategory12Tab">@drawable/ic_emoji_activity_holo_dark</item> |
| 102 | <item name="iconEmojiCategory13Tab">@drawable/ic_emoji_objects_holo_dark</item> |
| 103 | <item name="iconEmojiCategory14Tab">@drawable/ic_emoji_symbols_holo_dark</item> |
| 104 | <item name="iconEmojiCategory15Tab">@drawable/ic_emoji_flag_holo_dark</item> |
| 105 | <item name="iconEmojiCategory16Tab">@drawable/ic_emoji_people_holo_dark</item> |
Tadashi G. Takaoka | d189d2a | 2013-08-26 17:30:23 +0900 | [diff] [blame] | 106 | </style> |
| 107 | <style |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 108 | name="MoreKeysKeyboard.KLP" |
| 109 | parent="Keyboard.KLP" |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 110 | > |
| 111 | <item name="keyboardTopPadding">0%p</item> |
| 112 | <item name="keyboardBottomPadding">0%p</item> |
| 113 | <item name="horizontalGap">0%p</item> |
| 114 | <item name="touchPositionCorrectionData">@null</item> |
| 115 | </style> |
| 116 | <style |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 117 | name="MoreKeysKeyboardView.KLP" |
| 118 | parent="KeyboardView.KLP" |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 119 | > |
Ken Wakasa | 2fa3693 | 2013-12-13 17:09:16 +0900 | [diff] [blame] | 120 | <item name="android:background">@drawable/keyboard_popup_panel_background_klp</item> |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 121 | <item name="keyBackground">@drawable/btn_keyboard_key_popup_klp</item> |
Tadashi G. Takaoka | 727e818 | 2014-09-05 13:07:50 +0900 | [diff] [blame] | 122 | <item name="divider">@drawable/more_keys_divider</item> |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 123 | <item name="keyTypeface">normal</item> |
Ken Wakasa | 2fa3693 | 2013-12-13 17:09:16 +0900 | [diff] [blame] | 124 | <item name="verticalCorrection">@dimen/config_more_keys_keyboard_vertical_correction_holo</item> |
Tadashi G. Takaoka | 0861d67 | 2013-08-28 15:59:49 +0900 | [diff] [blame] | 125 | </style> |
| 126 | <style |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 127 | name="SuggestionStripView.KLP" |
Tadashi G. Takaoka | 9d99a2e | 2014-05-02 17:03:12 +0900 | [diff] [blame] | 128 | parent="KeyboardView.KLP" |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 129 | > |
Tadashi G. Takaoka | 9d99a2e | 2014-05-02 17:03:12 +0900 | [diff] [blame] | 130 | <item name="suggestionsCountInStrip">@integer/config_suggestions_count_in_strip</item> |
| 131 | <item name="centerSuggestionPercentile">@fraction/config_center_suggestion_percentile</item> |
| 132 | <item name="maxMoreSuggestionsRow">@integer/config_max_more_suggestions_row</item> |
| 133 | <item name="minMoreSuggestionsWidth">@fraction/config_min_more_suggestions_width</item> |
Tadashi G. Takaoka | 0861d67 | 2013-08-28 15:59:49 +0900 | [diff] [blame] | 134 | <item name="android:background">@drawable/keyboard_suggest_strip_holo</item> |
Tadashi G. Takaoka | 46394af | 2014-07-04 15:29:10 +0900 | [diff] [blame] | 135 | <item name="android:src">@drawable/suggestions_strip_divider_holo</item> |
Jean Chalard | a098466 | 2014-02-25 14:52:18 +0900 | [diff] [blame] | 136 | <item name="suggestionStripOptions">autoCorrectBold|validTypedWordBold</item> |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 137 | <item name="colorValidTypedWord">@color/typed_word_color_klp</item> |
| 138 | <item name="colorTypedWord">@color/typed_word_color_klp</item> |
| 139 | <item name="colorAutoCorrect">@color/highlight_color_klp</item> |
| 140 | <item name="colorSuggested">@color/suggested_word_color_klp</item> |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 141 | <item name="alphaObsoleted">70%</item> |
| 142 | </style> |
Tadashi G. Takaoka | c2ea3f7 | 2014-01-28 19:22:27 +0900 | [diff] [blame] | 143 | <style |
| 144 | name="SuggestionWord.KLP" |
| 145 | parent="SuggestionWord" |
| 146 | > |
Tadashi G. Takaoka | fe5262a | 2013-11-11 16:20:07 +0900 | [diff] [blame] | 147 | <item name="android:background">@drawable/btn_suggestion_klp</item> |
Tadashi G. Takaoka | c2ea3f7 | 2014-01-28 19:22:27 +0900 | [diff] [blame] | 148 | <item name="android:textColor">@color/highlight_color_klp</item> |
Tadashi G. Takaoka | e94bbca | 2013-08-27 17:04:06 +0900 | [diff] [blame] | 149 | </style> |
Tadashi G. Takaoka | c2a2178 | 2011-06-21 23:38:42 +0900 | [diff] [blame] | 150 | </resources> |