vendredi 29 juillet 2016

Android: Coloring part of a string using TextView.setText()?

I am looking to change the text of a TextView view via the .setText("") method while also coloring a part of the text (or making it bold, italic, transparent, etc.)and not the rest. For example:

title.setText("Your big island <b>ADVENTURE!</b>";

I know the above code is incorrect but it helps illustrate what I would like to achieve. How would I do this?

Aucun commentaire:

Enregistrer un commentaire