From 296a6d24bbd715cdd662bef3e2c9f503b11252e2 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Mon, 10 Apr 2023 09:57:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=83=E6=84=BF=E5=8D=95=E4=BF=AE=E6=94=B9?= 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 255fe860f..016bc096c 100644 --- a/live/src/main/java/com/yunbao/live/utils/LiveTextRender.java +++ b/live/src/main/java/com/yunbao/live/utils/LiveTextRender.java @@ -228,7 +228,7 @@ public class LiveTextRender { } drawable.setBounds(0, 0, DpUtil.dp2px(39), DpUtil.dp2px(15)); //用这个drawable对象代替字符串easy - ImageSpan span = new ImageSpan(drawable, ImageSpan.ALIGN_BOTTOM); + ImageSpan span = new ImageSpan(drawable, ImageSpan.ALIGN_BASELINE); spannableStringBuilder.setSpan(span, 0, 3, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); textView.setText(spannableStringBuilder); }