From 615f431465ed2b5f3511ddfcc4c6de7bbfc28151 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Tue, 17 Jun 2014 17:42:36 -0700 Subject: [PATCH] Custom view for key preview popup Bug: 15143928 Change-Id: I12411b9b5b9611ec089e4967def9b5c19a2367c7 --- java/res/layout/key_preview.xml | 27 --- java/res/values/attrs.xml | 6 +- java/res/values/themes-common.xml | 2 - java/res/values/themes-ics.xml | 8 +- java/res/values/themes-klp.xml | 8 +- java/res/values/themes-lxx-dark.xml | 8 +- .../internal/KeyPreviewChoreographer.java | 156 ++++++------------ .../internal/KeyPreviewDrawParams.java | 9 +- .../keyboard/internal/KeyPreviewView.java | 90 ++++++++++ 9 files changed, 153 insertions(+), 161 deletions(-) delete mode 100644 java/res/layout/key_preview.xml create mode 100644 java/src/com/android/inputmethod/keyboard/internal/KeyPreviewView.java diff --git a/java/res/layout/key_preview.xml b/java/res/layout/key_preview.xml deleted file mode 100644 index 16d4c72c3..000000000 --- a/java/res/layout/key_preview.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - diff --git a/java/res/values/attrs.xml b/java/res/values/attrs.xml index a1f478bd5..fcb919d0b 100644 --- a/java/res/values/attrs.xml +++ b/java/res/values/attrs.xml @@ -26,8 +26,6 @@ - - @@ -106,8 +104,8 @@ - - + + diff --git a/java/res/values/themes-common.xml b/java/res/values/themes-common.xml index 02a93ca82..2b2a80aed 100644 --- a/java/res/values/themes-common.xml +++ b/java/res/values/themes-common.xml @@ -75,7 +75,6 @@ @integer/config_key_repeat_interval @integer/config_longpress_shift_lock_timeout @integer/config_ignore_alt_code_key_timeout - @layout/key_preview @dimen/config_key_preview_height @integer/config_key_preview_linger_timeout @@ -106,7 +105,6 @@ - - -