Reputation: 44230
I am using myWebview.getSettings().setBuiltInZoomControls(true);
to set zoom controls on my webview.
I realize this enables a variety of zoom controls that are different on every phone/device.
For aesthetic purposes I would like to specifically turn on and turn off some features, for instance, the +/- zoom buttons that appear in the corner
These don't fit in my layout.
Pinch to zoom? OK Double tap to zoom? OK actual zoom buttons? No thanks
Upvotes: 1
Views: 1212
Reputation: 2204
I'm not sure that this is possible with the provided methods. There's a setDisplayZoomControls()
, but that only works for API11+.
A previous question here suggests a possible approach, though it looks somewhat cumbersome.
Upvotes: 1
Reputation: 2661
You should use
.getZoomButtonsController()
on your getSettings to update those.
You can find more information about the possible settings that you can change on http://developer.android.com/reference/android/widget/ZoomButtonsController.html
Upvotes: 0