ReplacementSpan's draw() method isn't called

后端 未结 7 1970
北海茫月
北海茫月 2021-02-08 03:26

I set background in string like that:

spanString.setSpan(new BackgroundColorSpan(color), 0, 3, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);

But I would l

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-08 04:26

    Call that view's invalidate() method in order to force invoke on draw().

提交回复
热议问题