From 486c4894ce0917fc7b18eaee4bfd031051f2b05b Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Tue, 9 Sep 2014 13:05:31 +0900 Subject: [PATCH] Keep aspect ratio of Material action key background Bug: 15681452 Change-Id: Ie4b823dca541b76b68cade580845a21ff0b21e2f --- java/res/values/attrs.xml | 2 ++ java/res/values/themes-lxx-dark.xml | 1 + java/res/values/themes-lxx-light.xml | 1 + java/res/xml-sw600dp/key_styles_enter.xml | 28 ++++++++++++++----- java/res/xml/key_styles_common.xml | 23 +++++++++++---- java/res/xml/key_styles_enter.xml | 28 ++++++++++++++----- .../com/android/inputmethod/keyboard/Key.java | 5 ++++ .../inputmethod/keyboard/KeyboardView.java | 24 ++++++++++++---- .../keyboard/MoreKeysKeyboard.java | 4 +-- 9 files changed, 90 insertions(+), 26 deletions(-) diff --git a/java/res/values/attrs.xml b/java/res/values/attrs.xml index 2e81bdf48..f1253b40c 100644 --- a/java/res/values/attrs.xml +++ b/java/res/values/attrs.xml @@ -338,6 +338,8 @@ + + diff --git a/java/res/values/themes-lxx-dark.xml b/java/res/values/themes-lxx-dark.xml index 76e9d33bf..5b2681359 100644 --- a/java/res/values/themes-lxx-dark.xml +++ b/java/res/values/themes-lxx-dark.xml @@ -114,6 +114,7 @@ @android:color/transparent @drawable/btn_keyboard_key_popup_action_lxx_dark @null + keepBackgroundAspectRatio