Andro Selva Andro Selva - 1 year ago 94
Android Question

Single TextView with two different colored text

As the title says, I want to know is it possible to achieve two different colored characters in a single textview element.

Answer Source

yes, if you formate the String with html

String text = "<font color=#cc0029>Erste Farbe</font> <font color=#ffcc00>zweite Farbe</font>";
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download