SpannableString spanText = new SpannableString("圖"+a); Drawable d = getResources().getDrawable(R.mipmap.gen_zan_p); // 左上右下 控制圖片大小 d.setBounds(0, 0, 30, 30); // 替換0,1的字符 spanText.setSpan(new ImageSpan(d), 0, 1, Spannable.SPAN_INCLUSIVE_EXCLUSIVE); ...
www.dbjr.com.cn/article/1333...htm 2025-5-22