textView html mode xml code example
Example: set html text android java
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
textView.setText(Html.fromHtml("Title
Description here
", Html.FROM_HTML_MODE_COMPACT));
} else {
textView.setText(Html.fromHtml("Title
Description here
"));
}