I am using this code and it works exactly as I want. But I have to implemented another feature on double tap and would like to disable the double tap zooming (but keeping the pi
Found a solution:
class MyWebView extends WebView {
public boolean onTouchEvent(MotionEvent event) {
gd.onTouchEvent(event);
// disable double tap zooming
if(doubleTap)
{
doubleTap = false;
return false;
}
return super.onTouchEvent(event);
}
GestureDetector.SimpleOnGestureListener sogl = new GestureDetector.SimpleOnGestureListener() {
public boolean onDoubleTap(MotionEvent e) {
showToast("Double tap");
doubleTap = true;
return false;
}
}