心愿单修改

This commit is contained in:
18401019693 2023-04-10 09:57:24 +08:00
parent 6c19f0efc4
commit 296a6d24bb

View File

@ -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);
}