* commit '81f9a0d8f370500128d134d6e851220c20038758': Fix the ellipses image scaling of LatinIME
This commit is contained in:
commit
c1ebf8ee23
1 changed files with 3 additions and 1 deletions
|
@ -191,7 +191,9 @@ final class SuggestionStripLayoutHelper {
|
||||||
final Bitmap buffer = Bitmap.createBitmap(width, (height * 3 / 2), Bitmap.Config.ARGB_8888);
|
final Bitmap buffer = Bitmap.createBitmap(width, (height * 3 / 2), Bitmap.Config.ARGB_8888);
|
||||||
final Canvas canvas = new Canvas(buffer);
|
final Canvas canvas = new Canvas(buffer);
|
||||||
canvas.drawText(MORE_SUGGESTIONS_HINT, width / 2, height, paint);
|
canvas.drawText(MORE_SUGGESTIONS_HINT, width / 2, height, paint);
|
||||||
return new BitmapDrawable(res, buffer);
|
BitmapDrawable bitmapDrawable = new BitmapDrawable(res, buffer);
|
||||||
|
bitmapDrawable.setTargetDensity(canvas);
|
||||||
|
return bitmapDrawable;
|
||||||
}
|
}
|
||||||
|
|
||||||
private CharSequence getStyledSuggestedWord(final SuggestedWords suggestedWords,
|
private CharSequence getStyledSuggestedWord(final SuggestedWords suggestedWords,
|
||||||
|
|
Loading…
Reference in a new issue