I’m use the great SwipeView library from cubiq.org.
The fact it uses endless optimized scrolling is great but I can’t seem to find how to cleanly detect the swipe direction. I need this to update the shown data accordingly.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Found the answer myself and it’s obviously really easy.
You can get direction from the directionX property on from the created SwipeView object.
This will be 1 for a swipe to the right and -1 for left.