I tried that too, It doesn't work properly. For the same reason that HorizontalScrollView can't call scrollTo/scrollBy in its computeScroll method.
On Dec 8, 10:59 pm, Romain Guy <[email protected]> wrote: > Use scrollTo()/scrollBy() :) > > > > On Tue, Dec 8, 2009 at 7:40 PM, Cheryl Sedota <[email protected]> wrote: > > I should have been more clear - in computeScroll, it's typical to need > > to set the scroll x and scroll y. I don't know of any way to do that > > - any suggestions? > > > The root issue I am having here is that the duration of the scroll is > > too small and scrolls are too fast. I need to set a shorter duration > > for the "mScroller.startScroll" call and I also would like to set a > > custom interpolator on the mScroller object. However, I don't have > > any access to the mScroller object within a HorizontalScrollView (it's > > private) so my only option is to implement a class that is similar to > > HorizontalScrollView, and that is where I run into the issues where my > > computeScroll method needs to set mScrollX and mScrollY so that the > > super-super-superclass, View, will render and draw my horizontal > > scroll view properly. > > > On Dec 8, 12:18 pm, Romain Guy <[email protected]> wrote: > >> Hi, > > >> You can just use getScrollX() and getScrollY(). > > >> On Tue, Dec 8, 2009 at 10:07 AM, Cheryl Sedota <[email protected]> > >> wrote: > >> > The View class has a computeScroll method whose documentation states: > > >> > Called by a parent to request that a child update its values for > >> > mScrollX and mScrollY if necessary. This will typically be done if the > >> > child is animating a scroll using a Scroller object. > > >> > Seehttp://developer.android.com/reference/android/view/View.html#compute... > > >> > I am using the 1.5 SDK and I do not have access from within my > >> > application to the mScrollX and mScrollY protected member variables of > >> > the View class. However, I MUST have a custom scroller object for my > >> > view. > > >> > Please advise. Thanks, > >> > Cheryl > > >> > -- > >> > 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 > > >> -- > >> Romain Guy > >> Android framework engineer > >> [email protected] > > >> Note: please don't send private questions to me, as I don't have time > >> to provide private support. All such questions should be posted on > >> public forums, where I and others can see and answer them > > > -- > > 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 > > -- > Romain Guy > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them -- 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

