This is probably because the layout has not happened yet. Instead of using postDelayed(), try using post(). It should work.
On Fri, Oct 24, 2008 at 3:55 PM, skink <[EMAIL PROTECTED]> wrote: > > hi, > > i have ScrollView - sv and inside sv TextView - tv > > when i tv.setText() and later sv.scrollTo(0, y) it doesn't work, > but ... when i call sv.scrollTo as a post delayed Runnable it works! > e.g > > sv.postDelayed(delayedScroll, 100) > > here delayedScroll is a Runnable that runs sv.scrollTo > > it's ofcourse bad workaround but it seems to work after any events > created by setText are dispatched. > > is it a bug or am i missing something? > > skink > > > > -- Romain Guy www.curious-creature.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

