| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| /* |
| ** |
| ** Copyright 2015, The Android Open Source Project |
| ** |
| ** Licensed under the Apache License, Version 2.0 (the "License"); |
| ** you may not use this file except in compliance with the License. |
| ** You may obtain a copy of the License at |
| ** |
| ** http://www.apache.org/licenses/LICENSE-2.0 |
| ** |
| ** Unless required by applicable law or agreed to in writing, software |
| ** distributed under the License is distributed on an "AS IS" BASIS, |
| ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ** See the License for the specific language governing permissions and |
| ** limitations under the License. |
| */ |
| --> |
| |
| <resources xmlns:android="http://schemas.android.com/apk/res/android"> |
| <style |
| name="InputView.You" |
| parent="InputView" |
| /> |
| <!-- LXX KeyboardView theme (LXX_Light and LXX_Dark) --> |
| <style |
| name="KeyboardView.You_Common" |
| parent="KeyboardView" |
| > |
| <item name="keyTypeface">normal</item> |
| <item name="keyLetterSize">@fraction/config_key_letter_ratio_you</item> |
| <item name="keyLabelSize">@fraction/config_key_label_ratio_lxx</item> |
| <item name="keyHintLetterRatio">@fraction/config_key_hint_letter_ratio_lxx</item> |
| <item name="keyShiftedLetterHintRatio">@fraction/config_key_shifted_letter_hint_ratio_lxx</item> |
| <item name="keyLargeLetterRatio">@fraction/config_key_large_letter_ratio_lxx</item> |
| <item name="keyLabelOffCenterRatio">-80%</item> |
| <item name="keyHintLabelRatio">@fraction/config_key_hint_label_ratio_lxx</item> |
| <item name="keyHintLabelOffCenterRatio">300%</item> |
| <item name="keyLabelFlags">alignHintLabelToBottom</item> |
| <item name="spacebarIconWidthRatio">0.9</item> |
| <!-- No popup hint letter --> |
| <item name="keyPopupHintLetter"></item> |
| <item name="keyHintLetterPadding">@dimen/config_key_hint_letter_padding_you</item> |
| <item name="keyHintLetterPaddingVertical">@dimen/config_key_hint_letter_padding_vertical_you</item> |
| <item name="keyPreviewTextRatio">@fraction/config_key_preview_text_ratio_you</item> |
| </style> |
| |
| <style name="KeyboardTheme.You" parent="KeyboardIcons.You"> |
| <item name="inputViewStyle">@style/InputView.You</item> |
| <item name="keyboardStyle">@style/Keyboard.You</item> |
| <item name="keyboardViewStyle">@style/KeyboardView.You</item> |
| <item name="mainKeyboardViewStyle">@style/MainKeyboardView.You</item> |
| <item name="emojiPalettesViewStyle">@style/EmojiPalettesView.You</item> |
| <item name="moreKeysKeyboardStyle">@style/MoreKeysKeyboard.You</item> |
| <item name="moreKeysKeyboardViewStyle">@style/MoreKeysKeyboardView.You</item> |
| <item name="moreKeysKeyboardViewForActionStyle">@style/MoreKeysKeyboardView.You.Action</item> |
| <item name="suggestionStripViewStyle">@style/SuggestionStripView.You</item> |
| <item name="suggestionWordStyle">@style/SuggestionWord.You</item> |
| </style> |
| <style |
| name="Keyboard.You" |
| parent="Keyboard" |
| > |
| <!-- This should be aligned with KeyboardTheme.THEME_ID_* --> |
| <item name="themeId">You</item> |
| <item name="verticalGap">@fraction/config_key_vertical_gap_you</item> |
| </style> |
| <style |
| name="KeyboardView.You" |
| parent="KeyboardView.You_Common" |
| > |
| <item name="android:background">@color/keyboard_background_you</item> |
| <item name="keyBackground">@drawable/btn_keyboard_key_you</item> |
| <item name="functionalKeyBackground">@drawable/btn_keyboard_key_functional_you</item> |
| <item name="spacebarBackground">@drawable/btn_keyboard_spacebar_you</item> |
| <item name="keyTextColor">@color/keyboard_key_text_color_you</item> |
| <item name="keyTextInactivatedColor">@color/keyboard_key_functional_text_color_you</item> |
| <item name="functionalTextColor">@color/keyboard_key_functional_text_color_you</item> |
| <item name="keyHintLetterColor">@color/key_hint_letter_color_you</item> |
| <item name="keyHintLabelColor">@color/key_hint_letter_color_you</item> |
| <item name="keyShiftedLetterHintInactivatedColor">@color/key_text_inactive_color_lxx_dark</item> |
| <item name="keyShiftedLetterHintActivatedColor">@color/key_text_color_lxx_dark</item> |
| <item name="keyPreviewTextColor">@color/keyboard_key_text_color_you</item> |
| <item name="gestureFloatingPreviewRoundRadius">@dimen/config_gesture_floating_preview_round_radius_you</item> |
| </style> |
| <style |
| name="MainKeyboardView.You" |
| parent="KeyboardView.You" |
| > |
| <item name="moreKeysKeyboardForActionLayout">@layout/more_keys_keyboard_for_action_lxx</item> |
| <item name="keyPreviewBackground">@drawable/keyboard_key_feedback_you</item> |
| <item name="keyPreviewHeight">@dimen/config_key_preview_height_you</item> |
| <item name="keyPreviewOffset">@dimen/config_key_preview_offset_you</item> |
| <item name="keyPreviewShowUpAnimator">@anim/key_preview_show_up_lxx</item> |
| <item name="keyPreviewDismissAnimator">@anim/key_preview_dismiss_lxx</item> |
| <item name="gestureFloatingPreviewTextColor">@color/gesture_floating_preview_text_color_you</item> |
| <item name="gestureFloatingPreviewColor">@color/gesture_floating_preview_color_you</item> |
| <item name="gestureTrailColor">@color/gesture_trail_color_you</item> |
| <item name="slidingKeyInputPreviewColor">@color/sliding_key_input_preview_color_you</item> |
| <item name="languageOnSpacebarTextColor">@color/key_hint_letter_color_you</item> |
| <!-- A negative value to disable text shadow layer. --> |
| <item name="languageOnSpacebarTextShadowRadius">-1.0</item> |
| </style> |
| <!-- Though {@link com.android.inputmethod.keyboard.emoji.EmojiPalettesView} doesn't extend |
| {@link com.android.inputmethod.keyboard.KeyboardView}, some views inside it, for instance |
| delete button, need themed {@link com.android.inputmethod.keyboard.KeyboardView} |
| attributes. --> |
| <style |
| name="EmojiPalettesView.You" |
| parent="MainKeyboardView.You" |
| > |
| <item name="categoryIndicatorEnabled">false</item> |
| <item name="categoryPageIndicatorColor">@color/highlight_color_you</item> |
| <item name="categoryPageIndicatorBackground">@color/emoji_tab_page_indicator_background_you</item> |
| <item name="iconEmojiRecentsTab">@drawable/ic_emoji_recents_lxx_light</item> |
| <item name="iconEmojiCategory1Tab">@drawable/ic_emoji_people_lxx_light</item> |
| <item name="iconEmojiCategory2Tab">@drawable/ic_emoji_objects_lxx_light</item> |
| <item name="iconEmojiCategory3Tab">@drawable/ic_emoji_nature_lxx_light</item> |
| <item name="iconEmojiCategory4Tab">@drawable/ic_emoji_places_lxx_light</item> |
| <item name="iconEmojiCategory5Tab">@drawable/ic_emoji_symbols_lxx_light</item> |
| <item name="iconEmojiCategory6Tab">@drawable/ic_emoji_emoticons_lxx_light</item> |
| <item name="iconEmojiCategory7Tab">@drawable/ic_emoji_flag_lxx_light</item> |
| <item name="iconEmojiCategory8Tab">@drawable/ic_emoji_people_lxx_light</item> |
| <item name="iconEmojiCategory9Tab">@drawable/ic_emoji_nature_lxx_light</item> |
| <item name="iconEmojiCategory10Tab">@drawable/ic_emoji_food_lxx_light</item> |
| <item name="iconEmojiCategory11Tab">@drawable/ic_emoji_places_lxx_light</item> |
| <item name="iconEmojiCategory12Tab">@drawable/ic_emoji_activity_lxx_light</item> |
| <item name="iconEmojiCategory13Tab">@drawable/ic_emoji_objects_lxx_light</item> |
| <item name="iconEmojiCategory14Tab">@drawable/ic_emoji_symbols_lxx_light</item> |
| <item name="iconEmojiCategory15Tab">@drawable/ic_emoji_flag_lxx_light</item> |
| <item name="iconEmojiCategory16Tab">@drawable/ic_emoji_people_lxx_light</item> |
| </style> |
| <style |
| name="MoreKeysKeyboard.You" |
| parent="Keyboard.You" |
| > |
| <item name="keyboardTopPadding">0%p</item> |
| <item name="keyboardBottomPadding">0%p</item> |
| <item name="horizontalGap">0%p</item> |
| <item name="touchPositionCorrectionData">@null</item> |
| </style> |
| <style |
| name="MoreKeysKeyboardView.You" |
| parent="KeyboardView.You" |
| > |
| <item name="android:background">@drawable/btn_keyboard_key_you</item> |
| <item name="keyBackground">@drawable/btn_keyboard_key_you</item> |
| <item name="divider">@drawable/more_keys_divider</item> |
| <item name="keyTypeface">normal</item> |
| <item name="verticalCorrection">@dimen/config_more_keys_keyboard_vertical_correction_holo</item> |
| </style> |
| <style |
| name="MoreKeysKeyboardView.You.Action" |
| parent="MoreKeysKeyboardView.You" |
| > |
| <item name="android:background">@android:color/transparent</item> |
| <item name="keyBackground">@drawable/btn_keyboard_key_popup_action_you</item> |
| <item name="divider">@null</item> |
| <item name="keyLabelFlags">keepBackgroundAspectRatio</item> |
| </style> |
| <style |
| name="SuggestionStripView.You" |
| parent="KeyboardView.You" |
| > |
| <item name="suggestionsCountInStrip">@integer/config_suggestions_count_in_strip</item> |
| <item name="centerSuggestionPercentile">@fraction/config_center_suggestion_percentile</item> |
| <item name="maxMoreSuggestionsRow">@integer/config_max_more_suggestions_row</item> |
| <item name="minMoreSuggestionsWidth">@fraction/config_min_more_suggestions_width</item> |
| <item name="android:background">@color/keyboard_background_you</item> |
| <item name="android:src">@drawable/suggestions_strip_divider_lxx_dark</item> |
| <item name="suggestionStripOptions">autoCorrectBold|validTypedWordBold</item> |
| <item name="colorValidTypedWord">@color/typed_word_color_you</item> |
| <item name="colorTypedWord">@color/typed_word_color_you</item> |
| <item name="colorAutoCorrect">@color/auto_correct_color_you</item> |
| <item name="colorSuggested">@color/suggested_word_color_you</item> |
| <item name="alphaObsoleted">70%</item> |
| </style> |
| <style |
| name="SuggestionWord.You" |
| parent="SuggestionWord" |
| > |
| <item name="android:background">@drawable/btn_suggestion_lxx_dark</item> |
| <item name="android:textColor">@color/highlight_color_you</item> |
| </style> |
| </resources> |