diff options
author | 2011-09-20 23:20:21 -0700 | |
---|---|---|
committer | 2011-09-20 23:20:21 -0700 | |
commit | be33b039115f50466445fc860473007a37451f62 (patch) | |
tree | 19613eee87397e6e196e69156db69b0c2796e6c9 /java/src | |
parent | 2d5326e70929c4f10b728a11ab4366aee921133c (diff) | |
parent | 8673ceb066ed0dacaff79ac296adf8aae9814a16 (diff) | |
download | latinime-be33b039115f50466445fc860473007a37451f62.tar.gz latinime-be33b039115f50466445fc860473007a37451f62.tar.xz latinime-be33b039115f50466445fc860473007a37451f62.zip |
am 8673ceb0: Use "..." instead of "\u2026"
* commit '8673ceb066ed0dacaff79ac296adf8aae9814a16':
Use "..." instead of "\u2026"
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/KeyboardView.java | 2 | ||||
-rw-r--r-- | java/src/com/android/inputmethod/latin/SuggestionsView.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardView.java b/java/src/com/android/inputmethod/keyboard/KeyboardView.java index 5a44460a1..8d34b7ee1 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardView.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardView.java @@ -84,7 +84,7 @@ public class KeyboardView extends View implements PointerTracker.DrawingProxy { private final float mBackgroundDimAmount; // HORIZONTAL ELLIPSIS "...", character for popup hint. - private static final String POPUP_HINT_CHAR = "\u2026"; + private static final String POPUP_HINT_CHAR = "..."; // Margin between the label and the icon on a key that has both of them. // Specified by the fraction of the key width. diff --git a/java/src/com/android/inputmethod/latin/SuggestionsView.java b/java/src/com/android/inputmethod/latin/SuggestionsView.java index 0785169e2..d7e7d5927 100644 --- a/java/src/com/android/inputmethod/latin/SuggestionsView.java +++ b/java/src/com/android/inputmethod/latin/SuggestionsView.java @@ -174,7 +174,7 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener, private final float mCenterSuggestionWeight; private final int mCenterSuggestionIndex; private final Drawable mMoreSuggestionsHint; - private static final String MORE_SUGGESTIONS_HINT = "\u2026"; + private static final String MORE_SUGGESTIONS_HINT = "..."; private static final CharacterStyle BOLD_SPAN = new StyleSpan(Typeface.BOLD); private static final CharacterStyle UNDERLINE_SPAN = new UnderlineSpan(); @@ -262,7 +262,7 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener, paint.setTextSize(textSize); paint.setColor(color); final Rect bounds = new Rect(); - paint.getTextBounds(MORE_SUGGESTIONS_HINT, 0, 1, bounds); + paint.getTextBounds(MORE_SUGGESTIONS_HINT, 0, MORE_SUGGESTIONS_HINT.length(), bounds); final int width = Math.round(bounds.width() + 0.5f); final int height = Math.round(bounds.height() + 0.5f); final Bitmap buffer = Bitmap.createBitmap( |