1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 02:42:16 -05:00

Some adjustments in render()

This commit is contained in:
Sebastian Kaspari 2010-03-06 19:20:17 +01:00
parent 0a222994b3
commit c5eef56151

View File

@ -96,8 +96,8 @@ public class Message {
canvas = new SpannableString("\n " + text); canvas = new SpannableString("\n " + text);
if (hasIcon()) { if (hasIcon()) {
Drawable drawable = context.getResources().getDrawable(icon); Drawable drawable = context.getResources().getDrawable(icon);
drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight()); drawable.setBounds(0, 0, 16, 16);
canvas.setSpan(new ImageSpan(drawable), 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); canvas.setSpan(new ImageSpan(drawable, ImageSpan.ALIGN_BOTTOM), 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
} }
} }