I need my textview to have different colored texts. Also I need to do this from xml code, non from java code. Is there anyone who knows some way fo
Refer your text to string.xml and using html font tag , by using that way you can change each letter color also .
just add this in java for that string:
TextView tv=(TextView)findViewById(R.id.tv);
tv.setText(Html.fromHtml(getString(R.string.any_text)));
and
In string.xml:
write your text here .
]]>
hope help you