ReplacementSpan's draw() method isn't called

后端 未结 7 1960
北海茫月
北海茫月 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().

    0 讨论(0)
提交回复
热议问题