0

For my app i want to add a FAQ page which contains large amount of text. Some of it has to be bold, underlined. I have an faq_xml with a scrollview. How do i add this large amount of text in a well displayed format? I read some online forums saying about using the html format. I couldn't understand. Some help would be appreciatd!

2 Answers2

0
android:maxLines = "any integer"
android:scrollbars = "vertical"

Then use:

yourTextView.setMovementMethod(new ScrollingMovementMethod());

in your main activity.

0

You can create a string containing HTML code. This String will then be used in a webView that you will make in you faq_xml.

Check this thread..

You can assign your html code to a string and then apply that css file you learned to create in the above mentioned thread.

Then call the webView like

wv.loadDataWithBaseURL("", YourStringHere, mimeType, encoding, "");

For your ease check out this thread..

Community
  • 1
  • 1
Muhammad
  • 13
  • 4