Color Is Lost After Adding String Format
I need to add some text in a textview with some text with red color and some are black color with a specific formatting Spannable wordtoSpan = new SpannableString(temp.substring(st
Solution 1:
Is there any alternatives?
Call String.format()
first, then create the SpannableString
from the result and apply the ForegroundColorSpan
.
Post a Comment for "Color Is Lost After Adding String Format"