Hi, You can abort fling effect by extending the Gallery class and overriding the onFling method, Inside the method, dont call the super method, just return true;
On Tue, Jul 28, 2009 at 4:20 PM, Brady <[email protected]> wrote: > > Hi everyone, > > I'd like to handle a fling gesture in Gallery and stop the animation > when the next image is fully displayed on screen. I've successfully > captured the fling gesture in my GestureListener. > > However when I try to call mGallery.clearAnimation() but it doesn't > stop the fling. I've looked at the Gallery.java source and it would be > great to have access to the mScroller to tell it to abort the > animation. > > The only luck I've had so far is to dispatch two MotionEvents to the > Gallery view: a quick TouchDown and TouchUp which stops the animation. > There must be a better way :) I'd appreciate your help! > > Thanks, > Brady > --~--~---------~--~----~------------~-------~--~----~ > 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

