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 bf274caca..b0340ed96 100644 --- a/live/src/main/java/com/yunbao/live/utils/LiveTextRender.java +++ b/live/src/main/java/com/yunbao/live/utils/LiveTextRender.java @@ -17,6 +17,7 @@ import android.text.style.AbsoluteSizeSpan; import android.text.style.ForegroundColorSpan; import android.text.style.ImageSpan; import android.text.style.StyleSpan; +import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.View.MeasureSpec; @@ -177,6 +178,7 @@ public class LiveTextRender { } public void aiAutomaticSpeech(Context activity, TextView textView, AiAutomaticSpeechModel model) { + Log.i("AI小助手", "aiAutomaticSpeech: "+model.getIcon()); ImgLoader.displayDrawable(activity, model.getIcon(), new ImgLoader.DrawableCallback() { @Override public void onLoadSuccess(Drawable drawable) { @@ -226,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_BASELINE); + ImageSpan span = new ImageSpan(drawable, ImageSpan.ALIGN_BOTTOM); spannableStringBuilder.setSpan(span, 0, 3, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); textView.setText(spannableStringBuilder); } diff --git a/live/src/main/res/layout/view_live_room.xml b/live/src/main/res/layout/view_live_room.xml index 79894a164..4aedb0d7a 100644 --- a/live/src/main/res/layout/view_live_room.xml +++ b/live/src/main/res/layout/view_live_room.xml @@ -699,7 +699,7 @@