调整心愿单浮标大小

修复注册默认值没香港标识
调整小助手图片位置
This commit is contained in:
2023-04-07 15:37:51 +08:00
parent 9d38ff7c8f
commit 33034ce4d6
5 changed files with 7 additions and 5 deletions

View File

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