TextView most certainly does not have a ScrollView "bundled in it".
It does have its own scroll functionality, but that's different.
As for the original problem, if you're trying to call scrolling methods
immediately after calling setText on the text view, it may not work because
the view hasn't
It's actually quite crazy.
I had similar problems with scroll view.
But from what you are saying, you are interested in scrolling the text-view.
I would presume that the text-view has scroll-view bundled in it.
If things are not working out, then try this (at least this is what I did):
Derive
Doesn't setting gravity to "bottom" do this?
--
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.
There are past threads on this you can dig up. Basically you have to
give the ScrollView a chance to realize it has had stuff added to it.
For example:
scroll.post(new Runnable() {
public void run() {
scroll.fullScroll(ScrollView.FOCUS_DOWN);
}
Anyone? This must have been encountered before?
:-)
On Jun 16, 1:32 pm, Neilz wrote:
> Hi all.
>
> When I update the textview within my scrollview, I want the scrollview
> to automatically scroll down to the bottom, so that the latest text is
> displayed.
>
> I've tried this code:
>
> scroll.ful
Same problem here...
On May 6, 6:14 am, Kaka wrote:
> any solution now?
>
> I have to implement the same function too.
>
> On Apr 20, 2:32 am, Arnaud Weber wrote:
>
> > Ok, i've found some kind of weird solution...
>
> > It seems that fullScroll is inversed. As i wanted to go to the top of my
>
any solution now?
I have to implement the same function too.
On Apr 20, 2:32 am, Arnaud Weber wrote:
> Ok, i've found some kind of weird solution...
>
> It seems that fullScroll is inversed. As i wanted to go to the top of my
> view i need to call
> scrollView.fullScroll(
>
>
>
> > ScrollView.F
Ok, i've found some kind of weird solution...
It seems that fullScroll is inversed. As i wanted to go to the top of my
view i need to call
scrollView.fullScroll(
>
> ScrollView.FOCUS_DOWN);
and to go to the bottom :
scrollView.fullScroll(
>
> ScrollView.FOCUS_UP);
... weird... but that's work
Hello,
I've the same problem. my scrollView contains a LinearLayout that is
almost empty at the beginning. Then i fill it with other views and try
immediately after to use
scrollView.fullScroll(ScrollView.FOCUS_UP);
This is not working...
I'm guessing my fullScroll setting is executed before t
9 matches
Mail list logo