diff options
author | 2014-09-09 13:05:31 +0900 | |
---|---|---|
committer | 2014-09-09 14:28:46 +0900 | |
commit | 486c4894ce0917fc7b18eaee4bfd031051f2b05b (patch) | |
tree | 9aaada10e1f2f9d6e2c4907791844787618a33b2 /java/res/xml/key_styles_common.xml | |
parent | 9395014e76877fc9ef060a3fe54a9e06f0036d6d (diff) | |
download | latinime-486c4894ce0917fc7b18eaee4bfd031051f2b05b.tar.gz latinime-486c4894ce0917fc7b18eaee4bfd031051f2b05b.tar.xz latinime-486c4894ce0917fc7b18eaee4bfd031051f2b05b.zip |
Keep aspect ratio of Material action key background
Bug: 15681452
Change-Id: Ie4b823dca541b76b68cade580845a21ff0b21e2f
Diffstat (limited to 'java/res/xml/key_styles_common.xml')
-rw-r--r-- | java/res/xml/key_styles_common.xml | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/java/res/xml/key_styles_common.xml b/java/res/xml/key_styles_common.xml index 43ee26b07..b36ddf236 100644 --- a/java/res/xml/key_styles_common.xml +++ b/java/res/xml/key_styles_common.xml @@ -80,11 +80,24 @@ latin:keyActionFlags="isRepeatable|noKeyPreview" latin:backgroundType="functional" /> <!-- emojiKeyStyle must be defined before including @xml/key_syles_enter. --> - <key-style - latin:styleName="emojiKeyStyle" - latin:keySpec="!icon/emoji_action_key|!code/key_emoji" - latin:keyActionFlags="noKeyPreview" - latin:backgroundType="action" /> + <switch> + <case latin:keyboardTheme="ICS|KLP"> + <key-style + latin:styleName="emojiKeyStyle" + latin:keySpec="!icon/emoji_action_key|!code/key_emoji" + latin:keyActionFlags="noKeyPreview" + latin:backgroundType="action" /> + </case> + <!-- keyboardTheme="LXXLight|LXXDark" --> + <default> + <key-style + latin:styleName="emojiKeyStyle" + latin:keySpec="!icon/emoji_action_key|!code/key_emoji" + latin:keyLabelFlags="keepBackgroundAspectRatio" + latin:keyActionFlags="noKeyPreview" + latin:backgroundType="action" /> + </default> + </switch> <include latin:keyboardLayout="@xml/key_styles_enter" /> <!-- TODO: Currently there is no way to specify icon alignment per theme. --> |