How to disable the third zoom button in webview of Android ?
Posted
by mob-king
on Stack Overflow
See other posts from Stack Overflow
or by mob-king
Published on 2010-06-12T12:58:36Z
Indexed on
2010/06/12
13:02 UTC
Read the original article
Hit count: 281
I want to disable the third button that creates a rectangle to zoom in other than +/- buttons in my WebView which uses builtin zoom controls. How can I do that ? I am able to do this for WebView without using built-in zoom controls by
myWebview.getZoomControls().getTouchables().get(2).setVisibility(View.INVISIBLE);
But how to do the same for built-in zoom controls ?
Also I am extending the WebView class and overriding the onTouchEvent for tracking touch events inside my WebView as this is not possible by default, since zoom buttons consumes the touch event.
© Stack Overflow or respective owner