更改图标大小
This commit is contained in:
parent
b7129bcbfa
commit
dea52ee452
@ -82,7 +82,7 @@ public class LiveTextRender {
|
||||
ForegroundColorSpan colorSpan2 = new ForegroundColorSpan(Color.parseColor("#a1f3ff"));
|
||||
|
||||
//18 43
|
||||
drawable.setBounds(0, 0, DpUtil.dp2px(46), DpUtil.dp2px(23));
|
||||
drawable.setBounds(0, 0, DpUtil.dp2px(30), DpUtil.dp2px(13));
|
||||
//用这个drawable对象代替字符串easy
|
||||
ImageSpan span = new ImageSpan(drawable, ImageSpan.ALIGN_BASELINE);
|
||||
//包括0但是不包括"easy".length()即:4。[0,4)。值得注意的是当我们复制这个图片的时候,实际是复制了"easy"这个字符串。
|
||||
|
Loading…
Reference in New Issue
Block a user