Hi guys,

 

I can't for the life of me work out how to get a text view to be
displayed scrolled to the bottom.

 

It appears that plenty of people have asked about this in newsgroups,
but no solution offered.

 

textView.setText(s);

scrollView.fullScroll(ScrollView.FOCUS_UP);

 

The above code is called, and whilst the text is updated correctly, the
view is not scrolled.

(I've tried ScrollView.FOCUS_DOWN) and that doesn't work either

 

Do I need to force the scrollView to measure itself before calling the
scroll function?  If so what would be the best way to go about doing
this and then calling the scroll.

 

I've also tried setting the text as spannable and setting the cursor
position to the end.

 

Cheers,

 

Peter.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to