I want to make animal.getScientificName
as Italics(code below). I\'m using a List View and setting the text in the listview. I wan\'t only part of the Text view to
I would recommend using two TextViews, because it is impossible to have two different text-styles in one TextView.
Just place them both under each other, and assign the correct String value to the TextView.
tv1.setText(animal.getName().toUpperCase().replaceAll( "_" , " " );
tv2.setText(animal.getScientificName();
And for example, you can use this layout in your ListView item: