每次我在 WebView 中加载页面时, WebView 都会尝试将网页压缩到一个小框架中。然而,在标准的 Android 浏览器中,它以完整尺寸加载页面,并允许用户放大他们决定的大小。
有没有办法让 webview 像默认的 web 浏览器一样加载页面?
最佳答案
类似这样的事情:
WebView wv;
WebSettings webSettings = wv.getSettings();
webSettings.setBuiltInZoomControls(true); //when you define webview settings just add this to enable zoom
wv.setInitialScale(1); //lets set initial zoom to 1% to see whole page when it loads
关于android - 我无法在 webview 中整齐地加载网页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5882366/