I set background in string like that:
spanString.setSpan(new BackgroundColorSpan(color), 0, 3, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
But I would l
Looks like I found a working (but hacky) solution to this problem. Try to add another symbol to the end of the string so that it isn't included in the span - and then draw()
gets called!
char EXTRA_SPACE = ' ';
String text = originalString + EXTRA_SPACE;
Spannable spannable = new SpannableString(text);
spannable.setSpan(new MyReplacementSpan(), 0, text.length()-1, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
textView.setText(spannable);
Looks like it ignores the spans which are whole string wide.