How to disable the doubletap zoom in android webview
. I have tried many things but it haven\'t worked. Please suggest me the right solution to achieve this .
Override
the onTouchEvent
in your WebView
.
It works in all cases.
@Override
public boolean onTouchEvent( MotionEvent event ) {
if (event.getAction() == MotionEvent.ACTION_UP) {
event.setAction(MotionEvent.ACTION_CANCEL);
super.onTouchEvent(event);
event.setAction(MotionEvent.ACTION_DOWN);
super.onTouchEvent(event);
event.setAction(MotionEvent.ACTION_UP);
}
return super.onTouchEvent(event);
}