[android-developers] Advice on Swipe Direction and Velocity
Hello all,
I'm looking for a starting point on this:
Here's a good example:
-When you create a 'ListView', as the user swipes up or down the
list scrolls
in accordance with how fast the user swiped. Give it a fast swipe, and
the list scrolls farther, faster.
Same thing is true within the web browser.
Now, I've downloaded the native source code for OS. So, I have that
as a resource to
poke around and see exactly how this is being accompished natively.
Question:
Is swipe direction/velocity documented anywhere. --Example code would
be helpful.
I'd like to start by applying an OnTouchEvent(); to a 2D canvas and
simply rotate
the canvas based on swipe velocity.
Any tips are appreciated.
Thanks,
Josh Beck
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home