diff options
author | 2011-06-01 16:16:57 +0900 | |
---|---|---|
committer | 2011-06-01 18:45:28 +0900 | |
commit | 2f894882a8c481b654c8e0717ff83fc0e4e6e92a (patch) | |
tree | 4e9e83a8ce5a2420e5dc20f6d3887eab7844d4e8 /java/src | |
parent | 528be97fca75513b81575ef64e4af6898656f5fb (diff) | |
download | latinime-2f894882a8c481b654c8e0717ff83fc0e4e6e92a.tar.gz latinime-2f894882a8c481b654c8e0717ff83fc0e4e6e92a.tar.xz latinime-2f894882a8c481b654c8e0717ff83fc0e4e6e92a.zip |
Revised phone/number layout for 7 inch tablet
Bug: 4442045
Change-Id: I562d75436aec2057863f6a8252275a5e47ecea6e
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/Key.java | 10 | ||||
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/KeyboardParser.java | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/Key.java b/java/src/com/android/inputmethod/keyboard/Key.java index eccd0c822..98a7f98c2 100644 --- a/java/src/com/android/inputmethod/keyboard/Key.java +++ b/java/src/com/android/inputmethod/keyboard/Key.java @@ -216,11 +216,11 @@ public class Key { if (keyXPos < 0) { // If keyXPos is negative, the actual x-coordinate will be k + keyXPos. keyXPos += keyboardWidth; - if (keyXPos < x) { - // keyXPos shouldn't be less than x because drawable area for this key starts - // at x. Or, this key will overlaps the adjacent key on its left hand side. - keyXPos = x; - } + } + if (keyXPos < x) { + // keyXPos shouldn't be less than x because drawable area for this key starts + // at x. Or, this key will overlaps the adjacent key on its left hand side. + keyXPos = x; } if (keyWidth == 0) { // If keyWidth is zero, the actual key width will be determined to fill out the diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardParser.java b/java/src/com/android/inputmethod/keyboard/KeyboardParser.java index 308651a9e..e599dfdef 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardParser.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardParser.java @@ -549,7 +549,7 @@ public class KeyboardParser { } private void endKey(Key key) { - mCurrentX = key.mX + key.mGap + key.mWidth; + mCurrentX = key.mX - key.mGap / 2 + key.mWidth + key.mGap; if (mCurrentX > mMaxRowWidth) mMaxRowWidth = mCurrentX; } |