diff options
author | 2010-09-23 00:13:48 -0700 | |
---|---|---|
committer | 2010-09-23 00:13:48 -0700 | |
commit | 6721b98b5cef7b088208a454d2c1089b1cc8d33f (patch) | |
tree | 61684d257030fe9ed1961f2d224b7f4a52ceb5d6 /java | |
parent | 48ef8f4a252ebe7f6fa4800b1eea15c37993625d (diff) | |
parent | ec8b7360161f37d00d178bef37c30352982cd007 (diff) | |
download | latinime-6721b98b5cef7b088208a454d2c1089b1cc8d33f.tar.gz latinime-6721b98b5cef7b088208a454d2c1089b1cc8d33f.tar.xz latinime-6721b98b5cef7b088208a454d2c1089b1cc8d33f.zip |
am ec8b7360: am 77542988: Tune left and right padding of popup mini keyboard
Merge commit 'ec8b7360161f37d00d178bef37c30352982cd007'
* commit 'ec8b7360161f37d00d178bef37c30352982cd007':
Tune left and right padding of popup mini keyboard
Diffstat (limited to 'java')
-rw-r--r-- | java/res/layout/keyboard_popup.xml | 2 | ||||
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/java/res/layout/keyboard_popup.xml b/java/res/layout/keyboard_popup.xml index 9a52e2cbd..27388e06b 100644 --- a/java/res/layout/keyboard_popup.xml +++ b/java/res/layout/keyboard_popup.xml @@ -23,6 +23,8 @@ android:layout_height="wrap_content" android:orientation="horizontal" android:background="@drawable/keyboard_popup_panel_background" + android:paddingLeft="16dip" + android:paddingRight="16dip" > <com.android.inputmethod.latin.LatinKeyboardBaseView xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java index eeccb965c..92266c5f1 100644 --- a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java +++ b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java @@ -1129,7 +1129,7 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx if (isNumberAtLeftmost) { popupX -= container.getPaddingLeft(); } else { - popupX += popupKey.width + getPaddingLeft(); + popupX += popupKey.width + container.getPaddingLeft(); popupX -= container.getMeasuredWidth(); popupX += container.getPaddingRight(); } |