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="KeyboardTheme.KLP" parent="KeyboardIcons.Holo"> 23 <item name="keyboardStyle">@style/Keyboard.KLP</item> 24 <item name="keyboardViewStyle">@style/KeyboardView.KLP</item> 25 <item name="mainKeyboardViewStyle">@style/MainKeyboardView.KLP</item> 26 <item name="emojiPalettesViewStyle">@style/EmojiPalettesView.KLP</item> 27 <item name="moreKeysKeyboardStyle">@style/MoreKeysKeyboard.KLP</item> 28 <!-- Note: KLP theme uses the same style for both general more keys and action more keys. --> 29 <item name="moreKeysKeyboardViewStyle">@style/MoreKeysKeyboardView.KLP</item> 30 <item name="moreKeysKeyboardViewForActionStyle">@style/MoreKeysKeyboardView.KLP</item> 31 <item name="suggestionStripViewStyle">@style/SuggestionStripView.KLP</item> 32 <item name="suggestionWordStyle">@style/SuggestionWord.KLP</item> 33 </style> 34 <style 35 name="Keyboard.KLP" 36 parent="Keyboard" 37 > 38 <!-- This should be aligned with KeyboardTheme.THEME_ID_* --> 39 <item name="themeId">KLP</item> 40 </style> 41 <style 42 name="KeyboardView.KLP" 43 parent="KeyboardView.Holo" 44 > 45 <item name="android:background">@drawable/keyboard_background_holo</item> 46 <item name="keyBackground">@drawable/btn_keyboard_key_klp</item> 47 <item name="functionalKeyBackground">@drawable/btn_keyboard_key_functional_klp</item> 48 <item name="spacebarBackground">@drawable/btn_keyboard_spacebar_klp</item> 49 <item name="keyTextColor">@color/key_text_color_holo</item> 50 <item name="keyTextInactivatedColor">@color/key_text_inactivated_color_holo</item> 51 <item name="functionalTextColor">@color/key_text_color_holo</item> 52 <item name="keyHintLetterColor">@color/key_hint_letter_color_holo</item> 53 <item name="keyHintLabelColor">@color/key_hint_label_color_holo</item> 54 <item name="keyShiftedLetterHintInactivatedColor">@color/key_shifted_letter_hint_inactivated_color_holo</item> 55 <item name="keyShiftedLetterHintActivatedColor">@color/key_shifted_letter_hint_activated_color_holo</item> 56 <item name="keyPreviewTextColor">@color/key_text_color_holo</item> 57 </style> 58 <style 59 name="MainKeyboardView.KLP" 60 parent="KeyboardView.KLP" 61 > 62 <item name="keyPreviewBackground">@drawable/keyboard_key_feedback_klp</item> 63 <item name="keyPreviewHeight">@dimen/config_key_preview_height_holo</item> 64 <item name="keyPreviewOffset">@dimen/config_key_preview_offset_holo</item> 65 <item name="keyPreviewShowUpAnimator">@anim/key_preview_show_up_holo</item> 66 <item name="keyPreviewDismissAnimator">@anim/key_preview_dismiss_holo</item> 67 <item name="gestureFloatingPreviewTextColor">@color/highlight_color_klp</item> 68 <item name="gestureFloatingPreviewColor">@color/gesture_floating_preview_color_holo</item> 69 <item name="gestureTrailColor">@color/highlight_color_klp</item> 70 <item name="slidingKeyInputPreviewColor">@color/highlight_translucent_color_klp</item> 71 <item name="languageOnSpacebarTextColor">@color/spacebar_text_color_holo</item> 72 <item name="languageOnSpacebarTextShadowRadius">1.0</item> 73 <item name="languageOnSpacebarTextShadowColor">@color/spacebar_text_shadow_color_holo</item> 74 </style> 75 <!-- Though {@link EmojiPalettesView} doesn't extend {@link KeyboardView}, some views inside it, 76 for instance delete button, need themed {@link KeyboardView} attributes. --> 77 <style 78 name="EmojiPalettesView.KLP" 79 parent="MainKeyboardView.KLP" 80 > 81 <item name="categoryIndicatorEnabled">true</item> 82 <item name="categoryIndicatorDrawable">@drawable/emoji_category_tab_selected_klp</item> 83 <item name="categoryIndicatorBackground">@drawable/emoji_category_tab_unselected_holo_dark</item> 84 <item name="categoryPageIndicatorColor">@color/highlight_color_klp</item> 85 <item name="categoryPageIndicatorBackground">@color/emoji_tab_page_indicator_background_holo</item> 86 <item name="iconEmojiRecentsTab">@drawable/ic_emoji_recents_holo_dark</item> 87 <item name="iconEmojiCategory1Tab">@drawable/ic_emoji_people_holo_dark</item> 88 <item name="iconEmojiCategory2Tab">@drawable/ic_emoji_objects_holo_dark</item> 89 <item name="iconEmojiCategory3Tab">@drawable/ic_emoji_nature_holo_dark</item> 90 <item name="iconEmojiCategory4Tab">@drawable/ic_emoji_places_holo_dark</item> 91 <item name="iconEmojiCategory5Tab">@drawable/ic_emoji_symbols_holo_dark</item> 92 <item name="iconEmojiCategory6Tab">@drawable/ic_emoji_emoticons_holo_dark</item> 93 </style> 94 <style 95 name="MoreKeysKeyboard.KLP" 96 parent="Keyboard.KLP" 97 > 98 <item name="keyboardTopPadding">0%p</item> 99 <item name="keyboardBottomPadding">0%p</item> 100 <item name="horizontalGap">0%p</item> 101 <item name="touchPositionCorrectionData">@null</item> 102 </style> 103 <style 104 name="MoreKeysKeyboardView.KLP" 105 parent="KeyboardView.KLP" 106 > 107 <item name="android:background">@drawable/keyboard_popup_panel_background_klp</item> 108 <item name="keyBackground">@drawable/btn_keyboard_key_popup_klp</item> 109 <item name="divider">@drawable/more_keys_divider</item> 110 <item name="keyTypeface">normal</item> 111 <item name="verticalCorrection">@dimen/config_more_keys_keyboard_vertical_correction_holo</item> 112 </style> 113 <style 114 name="SuggestionStripView.KLP" 115 parent="KeyboardView.KLP" 116 > 117 <item name="suggestionsCountInStrip">@integer/config_suggestions_count_in_strip</item> 118 <item name="centerSuggestionPercentile">@fraction/config_center_suggestion_percentile</item> 119 <item name="maxMoreSuggestionsRow">@integer/config_max_more_suggestions_row</item> 120 <item name="minMoreSuggestionsWidth">@fraction/config_min_more_suggestions_width</item> 121 <item name="android:background">@drawable/keyboard_suggest_strip_holo</item> 122 <item name="android:src">@drawable/suggestions_strip_divider_holo</item> 123 <item name="suggestionStripOptions">autoCorrectBold|validTypedWordBold</item> 124 <item name="colorValidTypedWord">@color/typed_word_color_klp</item> 125 <item name="colorTypedWord">@color/typed_word_color_klp</item> 126 <item name="colorAutoCorrect">@color/highlight_color_klp</item> 127 <item name="colorSuggested">@color/suggested_word_color_klp</item> 128 <item name="alphaObsoleted">70%</item> 129 </style> 130 <style 131 name="SuggestionWord.KLP" 132 parent="SuggestionWord" 133 > 134 <item name="android:background">@drawable/btn_suggestion_klp</item> 135 <item name="android:textColor">@color/highlight_color_klp</item> 136 </style> 137 </resources> 138