Tune left and right padding of popup mini keyboard

This change also fix popup window display position calculation.

Bug: 3029284
Change-Id: I28bf3e4deb46a428dc8422a3a165183e00608604
main
Tadashi G. Takaoka 2010-09-23 15:53:05 +09:00
parent 23f7fb035d
commit 77542988b8
2 changed files with 3 additions and 1 deletions

View File

@ -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"

View File

@ -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();
}