From 7ecc1081ab9b4e41e4b2aec7877aaaf8df29e611 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Fri, 27 Apr 2012 23:44:28 +0900 Subject: [PATCH] Fix calculation of more keys keyboard position based on key preview Bug: 6135881 Change-Id: Id1c4e2c13d13b474466cb9b42b425aa9f6f9448b --- .../keyboard_key_feedback_background_holo.xml | 24 ------- java/res/values-land/dimens.xml | 2 +- .../keyboard_key_feedback_background_holo.xml | 24 ------- .../keyboard_key_feedback_background_holo.xml | 24 ------- java/res/values/attrs.xml | 4 -- java/res/values/dimens.xml | 3 +- java/res/values/styles.xml | 6 -- .../inputmethod/keyboard/KeyboardView.java | 70 +++++++++++++------ .../keyboard/LatinKeyboardView.java | 20 ++++-- .../keyboard/MoreKeysKeyboard.java | 44 +++++++----- .../keyboard/MoreKeysKeyboardView.java | 6 +- .../suggestions/MoreSuggestionsView.java | 6 +- 12 files changed, 96 insertions(+), 137 deletions(-) delete mode 100644 java/res/values-hdpi/keyboard_key_feedback_background_holo.xml delete mode 100644 java/res/values-mdpi/keyboard_key_feedback_background_holo.xml delete mode 100644 java/res/values-xhdpi/keyboard_key_feedback_background_holo.xml diff --git a/java/res/values-hdpi/keyboard_key_feedback_background_holo.xml b/java/res/values-hdpi/keyboard_key_feedback_background_holo.xml deleted file mode 100644 index 8ab32269d..000000000 --- a/java/res/values-hdpi/keyboard_key_feedback_background_holo.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - 46.67dp - 58.67dp - diff --git a/java/res/values-land/dimens.xml b/java/res/values-land/dimens.xml index 1157b2733..62597258c 100644 --- a/java/res/values-land/dimens.xml +++ b/java/res/values-land/dimens.xml @@ -53,7 +53,7 @@ 40% 90% 40.000% - 12.8dp + 0.0dp 1.6dp diff --git a/java/res/values-mdpi/keyboard_key_feedback_background_holo.xml b/java/res/values-mdpi/keyboard_key_feedback_background_holo.xml deleted file mode 100644 index 10fef3d48..000000000 --- a/java/res/values-mdpi/keyboard_key_feedback_background_holo.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - 46dp - 58dp - diff --git a/java/res/values-xhdpi/keyboard_key_feedback_background_holo.xml b/java/res/values-xhdpi/keyboard_key_feedback_background_holo.xml deleted file mode 100644 index fba602626..000000000 --- a/java/res/values-xhdpi/keyboard_key_feedback_background_holo.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - 47dp - 57dp - diff --git a/java/res/values/attrs.xml b/java/res/values/attrs.xml index 844b8e96d..4bf5414a1 100644 --- a/java/res/values/attrs.xml +++ b/java/res/values/attrs.xml @@ -91,10 +91,6 @@ - - - - diff --git a/java/res/values/dimens.xml b/java/res/values/dimens.xml index 7eb57c3cf..d8d58dfa0 100644 --- a/java/res/values/dimens.xml +++ b/java/res/values/dimens.xml @@ -27,7 +27,6 @@ 52.8dp - 16dp 8dp 1.556%p @@ -66,7 +65,7 @@ 82% 33.735% 80dp - 16.0dp + -8.0dp 4dp 1dp diff --git a/java/res/values/styles.xml b/java/res/values/styles.xml index 1f8c37550..b3c921e9e 100644 --- a/java/res/values/styles.xml +++ b/java/res/values/styles.xml @@ -108,8 +108,6 @@