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.
setAppCacheEnabled(false); webview. getSettings(). setCacheMode(WebSettings. LOAD_NO_CACHE);
Use WebSettings#setTextZoom(int) and WebSettings#getTextZoom() instead. Enum for specifying the WebView's desired density.
Configuring WebView Settings with WebSettings getSettings() object if a WebView is already destroyed. You can retrieve WebSettings with WebView. getSettings() API.
This allows a web page designed at 800 pixels wide to be completely visible on the screen when the viewport scale is 1.0. Most web browsers on Android (including Chrome) set the viewport to a large size by default (known as "wide viewport mode" at about 980px wide).
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With