From dea52ee45285adf6e6dbd1570a709ae44454f86a Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Fri, 30 Sep 2022 10:47:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=9B=BE=E6=A0=87=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- live/src/main/java/com/yunbao/live/utils/LiveTextRender.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live/src/main/java/com/yunbao/live/utils/LiveTextRender.java b/live/src/main/java/com/yunbao/live/utils/LiveTextRender.java index e00a38b16..062a0021b 100644 --- a/live/src/main/java/com/yunbao/live/utils/LiveTextRender.java +++ b/live/src/main/java/com/yunbao/live/utils/LiveTextRender.java @@ -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"这个字符串。