[英]WebView not scaling Properly in Android
I am facing some issue with android web View. 我面临Android Web View的一些问题。 Sometime its scale properly, but some time the data goes out of page.
有时它的缩放比例适当,但有时数据会超出页面范围。
You can manually set zoom settings: 您可以手动设置缩放设置:
WebSettings webSettings = webview.getSettings();
// enable zoom
webSettings.setSupportZoom( true);
webSettings.setBuiltInZoomControls( true);
// disable zoom
webSettings.setSupportZoom( false);
webSettings.setBuiltInZoomControls( false);
Try this code for check your scale. 尝试使用此代码检查体重秤。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.