From 2b479cccaeb0bb54121730cb5e47cca3f7517c67 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Wed, 7 May 2014 16:19:59 +0900 Subject: Use margin instead of padding in SuggestionStripView This CL also tunes the width of suggestions strip to be able to display 15~16 letters without x-scaling at the center slot. Bug: 14419121 Change-Id: Ia5766cee043899533e24e2ebc621e8dc279370b3 --- .../com/android/inputmethod/latin/suggestions/SuggestionStripView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java') diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java index a0793b133..a578fa4a4 100644 --- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java +++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java @@ -209,7 +209,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick } public void showAddToDictionaryHint(final String word) { - mLayoutHelper.layoutAddToDictionaryHint(word, mAddToDictionaryStrip, getWidth()); + mLayoutHelper.layoutAddToDictionaryHint(word, mAddToDictionaryStrip); // {@link TextView#setTag()} is used to hold the word to be added to dictionary. The word // will be extracted at {@link #onClick(View)}. mAddToDictionaryStrip.setTag(word); -- cgit v1.2.3-83-g751a