So, I have a ScrollView with a single TextView inside it. Upon initial
startup I set the text of the text view to an internally stored string
and try:

ScrollView myScroll = (ScrollView) findViewById(R.id.my_scroll_id);
myScroll.fullScroll(ScrollView.FOCUS_DOWN);

No scrolling happens. (The string is long. I want to show the end of
it. Instead, at this point, view remains at the top.)

Now I append a few more lines to the text, set the TextView's text to
the new text, and perform the same fullScroll(ScrollView.FOCUS_DOWN)
function. It now scrolls, but to the end. For example, if the last
part of the text is:

5
+
5
=
10

After programmatically scrolling down I see:

5
+

I have to manually scroll to see the end.

Am I doing something wrong? How can I reliably get the scroll to show
the end of the text?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to