IconMarginSpan 方法很少,chooseHeight方法有这个作用吗,怎么改才能像DynamicDrawableSpan和ImageSpan设置DynamicDrawableSpan#ALIGN_BASELINE这样后面的文本能换行
public void chooseHeight(CharSequence text, int start, int end,
int istartv, int v,
Paint.FontMetricsInt fm) {
if (end == ((Spanned) text).getSpanEnd(this)) {
int ht = mBitmap.getHeight();
int need = ht - (v + fm.descent - fm.ascent - istartv);
if (need > 0)
fm.descent += need;
need = ht - (v + fm.bottom - fm.top - istartv);
if (need > 0)
fm.bottom += need;
}
}
加个空格。。。。。。就行了