开发者

zoom controller not working in webview in android

开发者 https://www.devze.com 2023-04-07 13:13 出处:网络
I am suffering from a strange problem in order to implement WebView in android. I am trying to load html5 supported web page in my WebView, but the pro开发者_StackOverflow社区blem is default zoom cont

I am suffering from a strange problem in order to implement WebView in android. I am trying to load html5 supported web page in my WebView, but the pro开发者_StackOverflow社区blem is default zoom controller is not working in WebView. i tried with the following code.

webview.getSettings().setBuiltInZoomControls(true);
webview.invokeZoomPicker();

Can any body help regarding this.


Add this line also

WebSettings setting = wView.getSettings();
        setting.setBuiltInZoomControls(true);
        setting.setSupportZoom(true);

if work or not please reply

0

精彩评论

暂无评论...
验证码 换一张
取 消