Hassan Mokdad Hassan Mokdad - 1 year ago 85
Android Question

Make EditText accept and display HTML formatted text

Does any one know how to make an

control shows html formatted text, and even writes HTML formatted text, to act like an HTML Edit Box,

Answer Source

To show HTML code in an EditText you need to convert it to Spanned using Html.fromHtml(). Only a small HTML tag subset can be used in this method. You can set a Spanned as a text of an EditText. Then you can edit it and convert it back using Html.toHtml().

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download