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
animal.getScientificName
use Html.fromHtml:
Html.fromHtml
listNames[ i ] = animal.getName().toUpperCase().replaceAll( "_" , " " ) + " \n\n" + "+animal.getScientificName()+"; array_sort = new ArrayList( Arrays.asList( listNames) ); tv.setText(Html.fromHtml(array_sort.get( position ) ));
for more info, refer this