Android’s TextView widget is actually quite robust. It supports various fonts, styles, colors, etc., allowing you to have newlines, bold sections, and more (even defined from XML); however, sometimes the text you are dumping into a TextView is HTML. Fortunately, it’s easy to add HTML to a TextView:
textView.setText(Html.fromHtml(htmlString));
Html.fromHtml() returns a Spanned and the TextView does the rest for you. Continue reading
