Add gap between suggestions strip and more suggestions
Bug: 5260292 Change-Id: Iba792ebe0767f5117f259bcb73ac0bff778b166e
This commit is contained in:
parent
8ac6d505b7
commit
4269a7cebd
2 changed files with 5 additions and 1 deletions
|
@ -79,6 +79,7 @@
|
||||||
<dimen name="suggestions_strip_height">40dip</dimen>
|
<dimen name="suggestions_strip_height">40dip</dimen>
|
||||||
<dimen name="more_suggestions_key_horizontal_padding">12dip</dimen>
|
<dimen name="more_suggestions_key_horizontal_padding">12dip</dimen>
|
||||||
<dimen name="more_suggestions_row_height">40dip</dimen>
|
<dimen name="more_suggestions_row_height">40dip</dimen>
|
||||||
|
<dimen name="more_suggestions_bottom_gap">6dip</dimen>
|
||||||
<dimen name="more_suggestions_slide_allowance">0.2in</dimen>
|
<dimen name="more_suggestions_slide_allowance">0.2in</dimen>
|
||||||
<integer name="max_more_suggestions_row">6</integer>
|
<integer name="max_more_suggestions_row">6</integer>
|
||||||
<fraction name="min_more_suggestions_width">90%</fraction>
|
<fraction name="min_more_suggestions_width">90%</fraction>
|
||||||
|
|
|
@ -154,6 +154,7 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
|
||||||
public final int mSuggestionsCountInStrip;
|
public final int mSuggestionsCountInStrip;
|
||||||
public final int mMaxMoreSuggestionsRow;
|
public final int mMaxMoreSuggestionsRow;
|
||||||
public final float mMinMoreSuggestionsWidth;
|
public final float mMinMoreSuggestionsWidth;
|
||||||
|
public final int mMoreSuggestionsBottomGap;
|
||||||
|
|
||||||
private final List<TextView> mWords;
|
private final List<TextView> mWords;
|
||||||
private final List<View> mDividers;
|
private final List<View> mDividers;
|
||||||
|
@ -222,6 +223,8 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
|
||||||
|
|
||||||
mCenterSuggestionIndex = mSuggestionsCountInStrip / 2;
|
mCenterSuggestionIndex = mSuggestionsCountInStrip / 2;
|
||||||
mMoreSuggestionsHint = res.getDrawable(R.drawable.more_suggestions_hint);
|
mMoreSuggestionsHint = res.getDrawable(R.drawable.more_suggestions_hint);
|
||||||
|
mMoreSuggestionsBottomGap = res.getDimensionPixelOffset(
|
||||||
|
R.dimen.more_suggestions_bottom_gap);
|
||||||
|
|
||||||
mInvertedForegroundColorSpan = new ForegroundColorSpan(mColorTypedWord ^ 0x00ffffff);
|
mInvertedForegroundColorSpan = new ForegroundColorSpan(mColorTypedWord ^ 0x00ffffff);
|
||||||
mInvertedBackgroundColorSpan = new BackgroundColorSpan(mColorTypedWord);
|
mInvertedBackgroundColorSpan = new BackgroundColorSpan(mColorTypedWord);
|
||||||
|
@ -740,7 +743,7 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
|
||||||
|
|
||||||
final MoreKeysPanel moreKeysPanel = mMoreSuggestionsView;
|
final MoreKeysPanel moreKeysPanel = mMoreSuggestionsView;
|
||||||
final int pointX = stripWidth / 2;
|
final int pointX = stripWidth / 2;
|
||||||
final int pointY = 0;
|
final int pointY = -params.mMoreSuggestionsBottomGap;
|
||||||
moreKeysPanel.showMoreKeysPanel(
|
moreKeysPanel.showMoreKeysPanel(
|
||||||
this, mMoreSuggestionsController, pointX, pointY,
|
this, mMoreSuggestionsController, pointX, pointY,
|
||||||
mMoreSuggestionsWindow, mMoreSuggestionsListener);
|
mMoreSuggestionsWindow, mMoreSuggestionsListener);
|
||||||
|
|
Loading…
Reference in a new issue