![](/img/trans.png)
[英]Viewport metatag in WebView not scaling the contents properly in Android
[英]WebView not scaling Properly in Android
我面临Android Web View的一些问题。 有时它的缩放比例适当,但有时数据会超出页面范围。
您可以手动设置缩放设置:
WebSettings webSettings = webview.getSettings();
// enable zoom
webSettings.setSupportZoom( true);
webSettings.setBuiltInZoomControls( true);
// disable zoom
webSettings.setSupportZoom( false);
webSettings.setBuiltInZoomControls( false);
尝试使用此代码检查体重秤。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.