Answers for "How to set TextView textStyle such as bold, italic"

0

How to set TextView textStyle such as bold, italic

String s = "<b>Bolded text</b>, <i>italic text</i>, even <u>underlined</u>!"
TextView tv = (TextView)findViewById(R.id.THE_TEXTVIEW_ID);
tv.setText(Html.fromHtml(s));
Posted by: Guest on February-15-2021

Code answers related to "How to set TextView textStyle such as bold, italic"

Browse Popular Code Answers by Language