From 15480481be790c913b0117d0841565efd399cd01 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Tue, 7 Oct 2014 15:11:43 +0900 Subject: [PATCH] Add keyboard shadow This CL sets 8dp elevation ot input view in order to cast a shadow onto underlying application. Bug: 16210054 Change-Id: I7779c63612fc88e24dde65de3e4e7a45b9d1762f --- java/res/layout/input_view.xml | 3 +- java/res/values-v21/themes-lxx.xml | 28 ++++++++ java/res/values/attrs.xml | 2 + java/res/values/themes-common.xml | 1 + java/res/values/themes-holo.xml | 4 ++ java/res/values/themes-ics.xml | 1 + java/res/values/themes-klp.xml | 1 + java/res/values/themes-lxx-dark.xml | 1 + java/res/values/themes-lxx-light.xml | 1 + java/res/values/themes-lxx.xml | 4 ++ .../inputmethod/compat/ViewCompatUtils.java | 7 -- .../ViewOutlineProviderCompatUtils.java | 42 +++++++++++ .../ViewOutlineProviderCompatUtilsLXX.java | 72 +++++++++++++++++++ .../android/inputmethod/latin/LatinIME.java | 6 ++ 14 files changed, 165 insertions(+), 8 deletions(-) create mode 100644 java/res/values-v21/themes-lxx.xml create mode 100644 java/src/com/android/inputmethod/compat/ViewOutlineProviderCompatUtils.java create mode 100644 java/src/com/android/inputmethod/compat/ViewOutlineProviderCompatUtilsLXX.java diff --git a/java/res/layout/input_view.xml b/java/res/layout/input_view.xml index 46551f63f..ae3c19db5 100644 --- a/java/res/layout/input_view.xml +++ b/java/res/layout/input_view.xml @@ -21,7 +21,8 @@ + android:layout_height="wrap_content" + style="?attr/inputViewStyle"> diff --git a/java/res/values-v21/themes-lxx.xml b/java/res/values-v21/themes-lxx.xml new file mode 100644 index 000000000..5a6017cce --- /dev/null +++ b/java/res/values-v21/themes-lxx.xml @@ -0,0 +1,28 @@ + + + + + + diff --git a/java/res/values/attrs.xml b/java/res/values/attrs.xml index f2072fd37..be35d131d 100644 --- a/java/res/values/attrs.xml +++ b/java/res/values/attrs.xml @@ -20,6 +20,8 @@ + + diff --git a/java/res/values/themes-common.xml b/java/res/values/themes-common.xml index 110f6b792..f7cb10f93 100644 --- a/java/res/values/themes-common.xml +++ b/java/res/values/themes-common.xml @@ -20,6 +20,7 @@