fix(avatar-span): make the avatar appear more centered relative to the rest of the text
This commit is contained in:
parent
ad4423526d
commit
a9c6bf24fd
|
@ -29,6 +29,7 @@ public class AvatarSpan extends CustomEmojiSpan{
|
||||||
//modified draw of a CustomEmojiSpan, drawing a circular image instead.
|
//modified draw of a CustomEmojiSpan, drawing a circular image instead.
|
||||||
if(drawable==null)
|
if(drawable==null)
|
||||||
return;
|
return;
|
||||||
|
top += 4;
|
||||||
int size=Math.round(paint.descent()-paint.ascent());
|
int size=Math.round(paint.descent()-paint.ascent());
|
||||||
Rect bounds=drawable.getBounds();
|
Rect bounds=drawable.getBounds();
|
||||||
int dw=drawable.getIntrinsicWidth();
|
int dw=drawable.getIntrinsicWidth();
|
||||||
|
|
Loading…
Reference in New Issue