What do setUseWideViewPort() and setLoadWithOverviewMode() precisely do?

后端 未结 2 1155
伪装坚强ぢ
伪装坚强ぢ 2020-12-12 14:19

I am disappointed at the lack of documentation of WebView and related stuff.

(unless you think the following is propert documetation)

public v

相关标签:
2条回答
  • 2020-12-12 14:52

    Apparently:

    setLoadWithOverviewMode(true) loads the WebView completely zoomed out

    setUseWideViewPort(true) makes the Webview have a normal viewport (such as a normal desktop browser), while when false the webview will have a viewport constrained to its own dimensions (so if the webview is 50px*50px the viewport will be the same size)

    0 讨论(0)
  • 2020-12-12 15:05

    If the setUseWideViewPort(true), it loads the WebView with the attributes defined in the meta tag of the webpage. So it scales the webpage as defined in the html.

    0 讨论(0)
提交回复
热议问题