Fit The Content Of A Webview On Screen With Zoom Suport
I'm trying to embed a HTML5 page into my application. The content is greater than device, so I'm zooming it with: web.setInitialScale((int) (728 / 600 * 100)); //728 is the height
Solution 1:
Try this:
web = (WebView) findViewById(R.id.webview);
web.getSettings().setBuiltInZoomControls(true);
web.getSettings().setSupportZoom(true);
web.getSettings().setUseWideViewPort(true);
web.getSettings().setLoadWithOverviewMode(true);
Post a Comment for "Fit The Content Of A Webview On Screen With Zoom Suport"