0

enter image description here

I want to show the following html text using TextView in a formatted way.

![<BODY Style="font-family: Arial;">Following 3 files have been added to the folder 'A UI UX' in the Project 'A' by B<p> Please use download link to access the file </p><p><table cellpadding='5' cellspacing='5' border='0'><tr><td> 1. </td><td> &nbsp; &nbsp;1KB -- - Copy (10) - Copy - Copy - Copy - Copy - Copy.txt&nbsp; </td><td> <a href=https://www...><img style='cursor:hand;color:blue;' src='https://www...DownloadFliles.gif'alt='Download Document'/></a></td></tr><tr><td> 2. </td><td> &nbsp; &nbsp;1KB -- - Copy (10) - Copy - Copy - Copy - Copy.txt&nbsp; </td><td> <a href=https://www...><img style='cursor:hand;color:blue;' src='https://www....gif'alt='Download Document'/></a> </td></tr><tr><td> 3. </td><td> &nbsp; &nbsp;1KB -- - Copy (10) - Copy - Copy - Copy.txt&nbsp; </td><td> <a href=https://www....><img style='cursor:hand;color:blue;' src='https://www....gif'alt='Download Document'/></a> </td></tr></table></p></BODY>
I have used this following code to display it in a formatted manner 

Spanned htmlSpan = Html.fromHtml(msgInfo.getmMsgText());        
mTxtView.setText(htmlSpan);][2]

But it is not recognizing the tag and so not displaying the individual rows in a new line.(Refer to screenshot)

1 Answer 1

1

This is the list of accepted tags. Your tag doesn't seem to be found there.

Sign up to request clarification or add additional context in comments.

2 Comments

While that list is old, the source code to the Html class does not show <table> either. That is because TextView has no table support.
@CommonsWare: I should have added some copyright comment in my answer :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.