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 recomputed its bounds yet.

Try posting a runnable like this:

textView.post(new Runnable() {
    ... call scroll method here ...
});

-- K

5 апреля 2012 г. 9:02 пользователь Put_tiMe <[email protected]> написал:

> 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 scrollview and write your own class. Override scrollTo and other
> similar function with which you have control over scrolling.
>
>
>
> On Thursday, April 5, 2012 7:51:23 AM UTC+5:30, Steve Cavanagh wrote:
>
>> 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 [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
>

-- 
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