Discussion:
Scrolling TextView that automatically scrolls to bottom
Roman Romano
2009-01-25 23:17:05 UTC
Permalink
Hi All,

I have a textview that is wrapped in a scrollview and works nicely.
The only problem is that when text is appended to the textview so as
to induce scrollability, it doesn't automatically scroll to the bottom
of the textview, ihave to manually scroll down.
Is there any way to achieve this 'keep-last-appended-text-in-view'?

many thanks all

Roman
Roman Romano
2009-01-26 14:01:53 UTC
Permalink
Fixed it i think.
in the method that appends the text, i needed to set fullScroll
(FOCUS_DOWN) on the ScrollView.
Hope that makes sense to anyone experiencing similar issues
Roman
Post by Roman Romano
Hi All,
I have a textview that is wrapped in a scrollview and works nicely.
The only problem is that when text is appended to the textview so as
to induce scrollability, it doesn't automatically scroll to the bottom
of the textview, ihave to manually scroll down.
Is there any way to achieve this 'keep-last-appended-text-in-view'?
many thanks all
Roman
mrspiteri
2009-01-28 11:33:29 UTC
Permalink
thanks I was looking for the same thing. it works though it doesn't
seem to scroll to the very bottom...leaves about 1 line so the bottom
(newest line) is slightly faded.
Post by Roman Romano
Fixed it i think.
in the method that appends the text, i needed to set fullScroll
(FOCUS_DOWN) on the ScrollView.
Hope that makes sense to anyone experiencing similar issues
Roman
Post by Roman Romano
Hi All,
I have a textview that is wrapped in a scrollview and works nicely.
The only problem is that when text is appended to the textview so as
to induce scrollability, it doesn't automatically scroll to the bottom
of the textview, ihave to manually scroll down.
Is there any way to achieve this 'keep-last-appended-text-in-view'?
many thanks all
Roman
Loading...