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
main
Tadashi G. Takaoka 2010-09-23 00:13:48 -07:00 committed by Android Git Automerger
commit 6721b98b5c
2 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:background="@drawable/keyboard_popup_panel_background" android:background="@drawable/keyboard_popup_panel_background"
android:paddingLeft="16dip"
android:paddingRight="16dip"
> >
<com.android.inputmethod.latin.LatinKeyboardBaseView <com.android.inputmethod.latin.LatinKeyboardBaseView
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"

View File

@ -1129,7 +1129,7 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx
if (isNumberAtLeftmost) { if (isNumberAtLeftmost) {
popupX -= container.getPaddingLeft(); popupX -= container.getPaddingLeft();
} else { } else {
popupX += popupKey.width + getPaddingLeft(); popupX += popupKey.width + container.getPaddingLeft();
popupX -= container.getMeasuredWidth(); popupX -= container.getMeasuredWidth();
popupX += container.getPaddingRight(); popupX += container.getPaddingRight();
} }