2

I'm trying to show very large text (of length 850879) in textview, unfortunately when I assign text to textview, UI hangs for 8-15 seconds! How do we fix this issue? any idea?

Khawar
  • 859
  • 11
  • 30

2 Answers2

2

Use Webview....instead of textview. Textview is not design to load large text.

WebView webView;
String html;
webView.loadDataWithBaseURL("", html, "text/html", "UTF-8", "");
Avinash Verma
  • 2,572
  • 1
  • 18
  • 22
1

Can you spilt the text in small chunks and provide it to a list view... That way ui will not be blocked for what's not visible

rock_win
  • 755
  • 1
  • 5
  • 14