From ab771b01eb6f113a84ce8d75509fca8617b85218 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Tue, 24 Apr 2012 12:59:33 +0900 Subject: [PATCH] Revert keyHintLetterPadding only to apply horizontally Partially reverts the Ia3680d84. Bug: 6356125 Change-Id: I8faa810b833cb98ce6f0f760aa1722e63475cd45 --- java/res/values/attrs.xml | 2 +- java/src/com/android/inputmethod/keyboard/KeyboardView.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java/res/values/attrs.xml b/java/res/values/attrs.xml index c78013f73..e14633a2e 100644 --- a/java/res/values/attrs.xml +++ b/java/res/values/attrs.xml @@ -64,7 +64,7 @@ - + diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardView.java b/java/src/com/android/inputmethod/keyboard/KeyboardView.java index d5bd7fda3..4a9135310 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardView.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardView.java @@ -662,10 +662,10 @@ public class KeyboardView extends View implements PointerTracker.DrawingProxy { hintY = -mFontMetrics.top + params.mKeyShiftedLetterHintPadding; paint.setTextAlign(Align.CENTER); } else { // key.hasHintLetter() - // The hint label is placed at top-right corner of the key. Used mainly on phone. + // The hint letter is placed at top-right corner of the key. Used mainly on phone. hintX = keyWidth - params.mKeyHintLetterPadding - getCharWidth(KEY_NUMERIC_HINT_LABEL_REFERENCE_CHAR, paint) / 2; - hintY = -paint.ascent() + params.mKeyHintLetterPadding; + hintY = -paint.ascent(); paint.setTextAlign(Align.CENTER); } canvas.drawText(hint, 0, hint.length(), hintX, hintY, paint);