Okay, I figured this out. The framework provides computeScroll for this. On Oct 20, 3:35 pm, MB <manoj.bi...@gmail.com> wrote: > Hi, > > I would really appreciate any insights regarding the following. Any > pointers/hints/thoughts on this would be very helpful. I have wasted > quite a bit of time on this. > > I have a custom view that needs to scroll internally. Currently the > way I do it is to re-draw the View when I detect fling/scroll > gestures. It works but is extremely jerky when the scroll amount is > large. > I am trying to make the custom view scroll smoothly similar to the way > ListView does. > > I've looked at the 'Scroller' class but couldn't figure out how to > make it work with a View. > > The only solution I've figured out so far is to start a 'Timer'/Thread > on large Scrolls and manually post invalidates. This is obviously > undesirable from a performance perspective since every fling/large > scroll creates a Timer/Thread. > > I do not want to use ScrollView. The custom view is laid out within a > RelativeLayout. > > Thanks, > > --MB.
-- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en