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

AndroidWebviewWebkit

Android Problem Overview


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

(unless you think the following is propert documetation)

> public void setLoadWithOverviewMode > (boolean overview) > > Set whether the > WebView loads a page with overview > mode

and:

> public synchronized void setUseWideViewPort (boolean use) > > > Tell the WebView to use the wide viewport

So: What is "Overview mode" ? what is "Wide viewport" ?

ps: I tried to look for webkit related docs but could not find it.

Android Solutions


Solution 1 - Android

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)

Solution 2 - Android

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiontaconeView Question on Stackoverflow
Solution 1 - AndroidtaconeView Answer on Stackoverflow
Solution 2 - AndroidSripathiView Answer on Stackoverflow