TextView tv = new TextView(m_con);
SpannableStringBuilder picStr = new SpannableStringBuilder();
picStr.append(new String("插入图片1"));
Bitmap bmp = BitmapFactory.decodeFile("xxx.bmp");
ImageSpan is = new ImageSpan(m_con,bmp,ImageSpan.ALIGN_BASELINE);
picStr.setSpan(is,pisStr.length() - 1, picStr.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
tv.setText(picStr);
SpannableStringBuilder picStr = new SpannableStringBuilder();
picStr.append(new String("插入图片1"));
Bitmap bmp = BitmapFactory.decodeFile("xxx.bmp");
ImageSpan is = new ImageSpan(m_con,bmp,ImageSpan.ALIGN_BASELINE);
picStr.setSpan(is,pisStr.length() - 1, picStr.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
tv.setText(picStr);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货