I'm working on this case for several days. I have a file with 20 thousands lines text to be displayed in an activity.
I use a TextView in a ScrollView to display the text. Everything goes on well except that the TextView takes 3-5 seconds
to draw the text. During this drawing time, if I want to scroll the view, I am getting ANR error
See Question&Answers more detail:osIs there any solution to avoid the ANR warning?