1

I'm trying to get a text scrolling by terminal like effect for an application I'm writing. The problem is that the textview only updates after all the text has been added.

How can I get it so it updates every line?

Toto
  • 89,455
  • 62
  • 89
  • 125
Mitchell
  • 929
  • 2
  • 11
  • 34

1 Answers1

0

Call textView.invalidate() to force it to redraw itself.

Peter Knego
  • 79,991
  • 11
  • 123
  • 154
  • That throws an error because the lines are being inserted in a thread separate from the drawing thread so it throws an error. But moving that line causes the code to fail for an unknown reason. No error is thrown – Mitchell Feb 21 '11 at 22:12
  • Use AsyncTask to do background work: http://developer.android.com/reference/android/os/AsyncTask.html – Peter Knego Feb 22 '11 at 05:39