Suppose I want to color part of text (words do you) in the sentence.
So I use this:
<string name="congratulations">Hello, how <font color="#00FFFF">do you</font> do</string>
But this not work on Android 4.0.
So for fix this I use next:
<string name="congratulations">Hello, how <font fgcolor="#FF00FFFF">do you</font> do</string>
But this not work for Android 4.3.
Has universal approach that will be work for all Android 4.0+ version AND for different languages?
I found that this not work on device: OS Version: 4.4.2 Device: HTC Desire 610. So at finally I use this solution:
<string name="expand"><![CDATA[<font color=#00FFFF>+</font> My contacts]]></string>.
Of course you need in java code use this:
Html.fromHtml(source);
So now it's work for all Adnroid 4.0+ and for all languages.