Android TextView set html text




Asked on September 15, 2015
How to use Html in android TextView?



Replied on September 15, 2015
Use Html.fromHtml() for Html text in TextView.

TextView text;
text.setText(Html.fromHtml("<html><body><h1>Hello World!</h1></body></html>");



Replied on September 15, 2015
Thanks.

Write Answer











©2023 concretepage.com | Privacy Policy | Contact Us