diff options
author | 2014-10-07 15:11:43 +0900 | |
---|---|---|
committer | 2014-10-09 12:39:15 +0900 | |
commit | 15480481be790c913b0117d0841565efd399cd01 (patch) | |
tree | bf7e8d74f619ec855b268b8ce6e6da32eacc860a /java/src/com/android/inputmethod/compat/ViewCompatUtils.java | |
parent | 3c6ac75c48e0f57d389305c9c22a3be960682ed2 (diff) | |
download | latinime-15480481be790c913b0117d0841565efd399cd01.tar.gz latinime-15480481be790c913b0117d0841565efd399cd01.tar.xz latinime-15480481be790c913b0117d0841565efd399cd01.zip |
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
Diffstat (limited to 'java/src/com/android/inputmethod/compat/ViewCompatUtils.java')
-rw-r--r-- | java/src/com/android/inputmethod/compat/ViewCompatUtils.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/java/src/com/android/inputmethod/compat/ViewCompatUtils.java b/java/src/com/android/inputmethod/compat/ViewCompatUtils.java index 0f00be133..16260ab6a 100644 --- a/java/src/com/android/inputmethod/compat/ViewCompatUtils.java +++ b/java/src/com/android/inputmethod/compat/ViewCompatUtils.java @@ -31,9 +31,6 @@ public final class ViewCompatUtils { private static final Method METHOD_setPaddingRelative = CompatUtils.getMethod( View.class, "setPaddingRelative", int.class, int.class, int.class, int.class); - // Note that View.setElevation(float) has been introduced in API level 21. - private static final Method METHOD_setElevation = CompatUtils.getMethod( - View.class, "setElevation", float.class); // Note that View.setTextAlignment(int) has been introduced in API level 17. private static final Method METHOD_setTextAlignment = CompatUtils.getMethod( View.class, "setTextAlignment", int.class); @@ -58,10 +55,6 @@ public final class ViewCompatUtils { CompatUtils.invoke(view, null, METHOD_setPaddingRelative, start, top, end, bottom); } - public static void setElevation(final View view, final float elevation) { - CompatUtils.invoke(view, null, METHOD_setElevation, elevation); - } - // These TEXT_ALIGNMENT_* constants have been introduced in API 17. public static final int TEXT_ALIGNMENT_INHERIT = 0; public static final int TEXT_ALIGNMENT_GRAVITY = 1; |