80

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.

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
tacone
  • 11,371
  • 8
  • 43
  • 60
  • 6
    Completely agree with you. As far as I understand overview viewport is something like you zoom out 100% that you get an "overiew". What wide viewport does i don't know, only that it enables double tap zooming. – Bloeper Apr 01 '11 at 13:47
  • 1
    I agree! Joker documentation! – Dori Dec 04 '13 at 17:02

3 Answers3

111

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)

tacone
  • 11,371
  • 8
  • 43
  • 60
9

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.

Sripathi
  • 1,760
  • 15
  • 20
6

From "Web Page Layout" documentation of WebView,

Web Page Layout

selvan
  • 1,298
  • 14
  • 9