Android Webview initial zoom out

前端 未结 6 912
失恋的感觉
失恋的感觉 2021-02-07 00:58

I\'m using a webview in my android app, at the moment when the app is started the website is zoomed in quite a lot, i want it to be zoomed out to fit the width of the screen. I

6条回答
  •  情话喂你
    2021-02-07 01:01

    This zooms out so that the content (an SVG in my case) fits on the screen but does not make unnecessary space.

    webView.getSettings().setUseWideViewPort(true);
    webView.setInitialScale(1);
    

提交回复
热议问题