I load images in webview and would like to switch between them by fling gesture, but implementing gesture detector in webview case all events are caugth by detector = webview function as zoom and mt dont work. Is there any solution? Filtering events and passing them dow to ontouch? Example code very apreciated.
Thanks to all.
The key to this is to check the return value from gestureDetector.onTouchEvent and, if gestureDetector did not handle the event, then pass it on to the WebView superclass. Also, be sure to return "false" from your onDown method even if you do something with it, so the superclass can initialize its internal state. If your onFling method handles the event, return "true", otherwise return "false" so the default methods can apply.