Answers for "html text in textview android kotlin"

0

set html text android java

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
    textView.setText(Html.fromHtml("<h2>Title</h2><br><p>Description here</p>", Html.FROM_HTML_MODE_COMPACT));
} else { 
    textView.setText(Html.fromHtml("<h2>Title</h2><br><p>Description here</p>"));
}
Posted by: Guest on April-12-2020

Code answers related to "html text in textview android kotlin"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language