Well, I've figured out a "good-enough" solution, although if you have
a better one I'd still love to hear it!

I've extended the Gallery class and overridden the OnFling method. In
my new subclass I change the velocityX to be -600.0 or 600.0
(depending on the fling x direction) and then pass that through to the
super.OnFling call.
600.0 is just enough velocity to flip the screen one item. It even
gets a little bounce back after the fling so it looks nice. I've put
in some logic to adjust the velocity bigger for landscape orientation.

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

Reply via email to