aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/SuggestionsView.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2011-09-06 18:33:01 +0900
committerTadashi G. Takaoka <takaoka@google.com>2011-09-06 18:33:01 +0900
commit4269a7cebdfe5c76372d0f0dd187432f0594ffe5 (patch)
treec20432ac241219e380bc777b166e320ffff8f5ae /java/src/com/android/inputmethod/latin/SuggestionsView.java
parent8ac6d505b7ceab020a4085b3dfbea5b47362b030 (diff)
downloadlatinime-4269a7cebdfe5c76372d0f0dd187432f0594ffe5.tar.gz
latinime-4269a7cebdfe5c76372d0f0dd187432f0594ffe5.tar.xz
latinime-4269a7cebdfe5c76372d0f0dd187432f0594ffe5.zip
Add gap between suggestions strip and more suggestions
Bug: 5260292 Change-Id: Iba792ebe0767f5117f259bcb73ac0bff778b166e
Diffstat (limited to 'java/src/com/android/inputmethod/latin/SuggestionsView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/SuggestionsView.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/SuggestionsView.java b/java/src/com/android/inputmethod/latin/SuggestionsView.java
index 4fcc2af85..16ecc59ae 100644
--- a/java/src/com/android/inputmethod/latin/SuggestionsView.java
+++ b/java/src/com/android/inputmethod/latin/SuggestionsView.java
@@ -154,6 +154,7 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
public final int mSuggestionsCountInStrip;
public final int mMaxMoreSuggestionsRow;
public final float mMinMoreSuggestionsWidth;
+ public final int mMoreSuggestionsBottomGap;
private final List<TextView> mWords;
private final List<View> mDividers;
@@ -222,6 +223,8 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
mCenterSuggestionIndex = mSuggestionsCountInStrip / 2;
mMoreSuggestionsHint = res.getDrawable(R.drawable.more_suggestions_hint);
+ mMoreSuggestionsBottomGap = res.getDimensionPixelOffset(
+ R.dimen.more_suggestions_bottom_gap);
mInvertedForegroundColorSpan = new ForegroundColorSpan(mColorTypedWord ^ 0x00ffffff);
mInvertedBackgroundColorSpan = new BackgroundColorSpan(mColorTypedWord);
@@ -740,7 +743,7 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
final MoreKeysPanel moreKeysPanel = mMoreSuggestionsView;
final int pointX = stripWidth / 2;
- final int pointY = 0;
+ final int pointY = -params.mMoreSuggestionsBottomGap;
moreKeysPanel.showMoreKeysPanel(
this, mMoreSuggestionsController, pointX, pointY,
mMoreSuggestionsWindow, mMoreSuggestionsListener);