final View zoom = myWebView.getZoomControls();
mContentView.addView(zoom, ZOOM_PARAMS);
zoom.setVisibility(View.GONE);
settings.setSupportZoom(true);
settings.setBuiltInZoomControls(true);
settings.setBuiltInZoomControls(true)必须要加,不然缩放不起作用
//隐藏webview缩放按钮 settings.setDisplayZoomControls(false);
作者:夜sama
链接:https://www.jianshu.com/p/39857fc82ff1
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
参考 https://blog.csdn.net/hanhailong726188/article/details/46717621