So is there a way for a webview control to detect a swipe while capable of doing multitouch zoom and having build-in zoom controls?
Share
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.
YES!There is a way of doing that by implementing WebView and creating a custom Webview
This way the custom WebView has build in
swipe detection having at the same time multi touch and build in controls
for zoom.
and here is the custom webview
And that’s It.You have Build in swipe detection.Code is in a bit “pseudocode” and haven’t cleaned it up but Overriding the onTouchEvent in MotionEvent.ACTION_MOVE and case MotionEvent.ACTION_UP should do the trick.You can also play with the time and difference bounds .