I have two words inside TextView :
Hello world.
Now I want to colorize world
to red color.
How I can do that ONLY in XML itself without using java code (without using Html.fromHtml()
as well)
I have two words inside TextView :
Hello world.
Now I want to colorize world
to red color.
How I can do that ONLY in XML itself without using java code (without using Html.fromHtml()
as well)
You can use font tag in string.xml as
<string name="hello">Hello <font fgcolor="red">World</font></string>