-1

I want to display html data in text view all my html tags are working fine but only <button> tag is not taking this is my code chielddesctext.setText(Html.fromHtml("<button>hi</button>"));. Can some one can help me to solve this problem i tried but its not working.

Ganesh P
  • 196
  • 1
  • 14
  • @Selvin unnecessary commentary here; its not helpful, and may prevent the user from coming back, being involved in the community. I understand where you are coming from, and I've done it...we just all need to move past this. – albert Apr 04 '16 at 14:41
  • I can't agree... Direct search with method's name + supported tag returns link to commonsware blog... Internet search is one of the most important programming skill. This comment should learn him to use search first, ask later... – Selvin Apr 04 '16 at 16:05

1 Answers1

0

Html.fromHtml() does not honor all HTML tags. This roster is a bit old but is still fairly close to the current state of affairs.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • Can you help me how to achieve – Ganesh P Apr 05 '16 at 06:42
  • @GaneshP: Use an Android `Button` widget. Or, use a `WebView`. There is nothing a `TextView` can handle that would use an HTML ` – CommonsWare Apr 05 '16 at 11:02