Home | History | Annotate | Download | only in values
      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         <item name="moreKeysKeyboardViewStyle">@style/MoreKeysKeyboardView.KLP</item>
     29         <item name="moreKeysKeyboardContainerStyle">@style/MoreKeysKeyboardContainer.KLP</item>
     30         <item name="suggestionStripViewStyle">@style/SuggestionStripView.KLP</item>
     31         <item name="suggestionWordStyle">@style/SuggestionWord.KLP</item>
     32     </style>
     33     <style
     34         name="Keyboard.KLP"
     35         parent="Keyboard"
     36     >
     37         <!-- This should be aligned with KeyboardSwitcher.KEYBOARD_THEMES[] -->
     38         <item name="themeId">0</item>
     39         <item name="keyboardTopPadding">@fraction/keyboard_top_padding_holo</item>
     40         <item name="keyboardBottomPadding">@fraction/keyboard_bottom_padding_holo</item>
     41         <item name="horizontalGap">@fraction/key_horizontal_gap_holo</item>
     42         <item name="verticalGap">@fraction/key_bottom_gap_holo</item>
     43         <item name="touchPositionCorrectionData">@array/touch_position_correction_data_holo</item>
     44     </style>
     45     <style
     46         name="KeyboardView.KLP"
     47         parent="KeyboardView"
     48     >
     49         <item name="android:background">@drawable/keyboard_background_holo</item>
     50         <item name="keyBackground">@drawable/btn_keyboard_key_klp</item>
     51         <item name="keyTypeface">bold</item>
     52         <item name="keyTextColor">@color/key_text_color_holo</item>
     53         <item name="keyTextInactivatedColor">@color/key_text_inactivated_color_holo</item>
     54         <item name="keyHintLetterColor">@color/key_hint_letter_color_holo</item>
     55         <item name="keyHintLabelColor">@color/key_hint_label_color_holo</item>
     56         <item name="keyShiftedLetterHintInactivatedColor">@color/key_shifted_letter_hint_inactivated_color_holo</item>
     57         <item name="keyShiftedLetterHintActivatedColor">@color/key_shifted_letter_hint_activated_color_holo</item>
     58         <item name="keyPreviewTextColor">@color/key_text_color_holo</item>
     59         <item name="keyTextShadowColor">@color/key_text_shadow_color_holo</item>
     60         <item name="keyTextShadowRadius">0.0</item>
     61     </style>
     62     <style
     63         name="MainKeyboardView.KLP"
     64         parent="KeyboardView.KLP"
     65     >
     66         <item name="keyPreviewLayout">@layout/key_preview_klp</item>
     67         <item name="keyPreviewOffset">@dimen/key_preview_offset_holo</item>
     68         <item name="gestureFloatingPreviewTextColor">@color/highlight_color_klp</item>
     69         <item name="gestureFloatingPreviewColor">@color/gesture_floating_preview_color_holo</item>
     70         <item name="gestureTrailColor">@color/highlight_color_klp</item>
     71         <item name="slidingKeyInputPreviewColor">@color/highlight_translucent_color_klp</item>
     72         <item name="autoCorrectionSpacebarLedEnabled">false</item>
     73         <item name="autoCorrectionSpacebarLedIcon">@drawable/sym_keyboard_space_led_holo</item>
     74         <item name="spacebarTextColor">@color/spacebar_text_color_holo</item>
     75         <item name="spacebarTextShadowColor">@color/spacebar_text_shadow_color_holo</item>
     76     </style>
     77     <!-- Though {@link EmojiPalettesView} doesn't extend {@link KeyboardView}, some views inside it,
     78          for instance delete button, need themed {@link KeyboardView} attributes. -->
     79     <style
     80         name="EmojiPalettesView.KLP"
     81         parent="KeyboardView.KLP"
     82     >
     83         <item name="keyBackgroundEmojiFunctional">@drawable/btn_keyboard_key_functional_klp</item>
     84         <item name="emojiTabLabelColor">@color/emoji_tab_label_color_holo</item>
     85     </style>
     86     <style
     87         name="MoreKeysKeyboard.KLP"
     88         parent="Keyboard.KLP"
     89     >
     90         <item name="keyboardTopPadding">0%p</item>
     91         <item name="keyboardBottomPadding">0%p</item>
     92         <item name="horizontalGap">0%p</item>
     93         <item name="touchPositionCorrectionData">@null</item>
     94     </style>
     95     <style
     96         name="MoreKeysKeyboardView.KLP"
     97         parent="KeyboardView.KLP"
     98     >
     99         <item name="android:background">@null</item>
    100         <item name="keyBackground">@drawable/btn_keyboard_key_popup_klp</item>
    101         <item name="keyTypeface">normal</item>
    102         <item name="verticalCorrection">@dimen/more_keys_keyboard_vertical_correction_holo</item>
    103     </style>
    104     <style
    105         name="MoreKeysKeyboardContainer.KLP"
    106     >
    107         <item name="android:background">@drawable/keyboard_popup_panel_background_klp</item>
    108     </style>
    109     <style
    110         name="SuggestionStripView.KLP"
    111         parent="SuggestionStripView"
    112     >
    113         <item name="android:background">@drawable/keyboard_suggest_strip_holo</item>
    114         <item name="suggestionStripOption">autoCorrectBold|validTypedWordBold</item>
    115         <item name="colorValidTypedWord">@color/typed_word_color_klp</item>
    116         <item name="colorTypedWord">@color/typed_word_color_klp</item>
    117         <item name="colorAutoCorrect">@color/highlight_color_klp</item>
    118         <item name="colorSuggested">@color/suggested_word_color_klp</item>
    119         <item name="alphaObsoleted">70%</item>
    120     </style>
    121     <style name="SuggestionWord.KLP">
    122         <item name="android:background">@drawable/btn_suggestion_klp</item>
    123     </style>
    124 </resources>
    125