diff options
| author | Mikhail Naganov <mnaganov@google.com> | 2013-09-06 09:52:49 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2013-09-06 09:52:49 -0700 |
| commit | 1b48d039d3e86be21eb0aaa36f6fee4613938d69 (patch) | |
| tree | f6c9922a50d5ea8ccbeec013d547bfab69971438 /core/java/android/webkit/WebView.java | |
| parent | c55a29c45e699418513f4c95c204c12839b1c79f (diff) | |
| parent | 708d279a16e2c937da1a2247195eb738906c199e (diff) | |
| download | frameworks_base-1b48d039d3e86be21eb0aaa36f6fee4613938d69.zip frameworks_base-1b48d039d3e86be21eb0aaa36f6fee4613938d69.tar.gz frameworks_base-1b48d039d3e86be21eb0aaa36f6fee4613938d69.tar.bz2 | |
am 708d279a: am 498a5f54: Merge "Add more docs for WebView\'s setInitialScale and setLoadWithOverviewMode" into klp-dev
* commit '708d279a16e2c937da1a2247195eb738906c199e':
Add more docs for WebView's setInitialScale and setLoadWithOverviewMode
Diffstat (limited to 'core/java/android/webkit/WebView.java')
| -rw-r--r-- | core/java/android/webkit/WebView.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index b8562c8..bcd26f8 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -1112,10 +1112,18 @@ public class WebView extends AbsoluteLayout } /** - * Sets the initial scale for this WebView. 0 means default. If - * {@link WebSettings#getUseWideViewPort()} is true, it zooms out all the - * way. Otherwise it starts with 100%. If initial scale is greater than 0, - * WebView starts with this value as initial scale. + * Sets the initial scale for this WebView. 0 means default. + * The behavior for the default scale depends on the state of + * {@link WebSettings#getUseWideViewPort()} and + * {@link WebSettings#getLoadWithOverviewMode()}. + * If the content fits into the WebView control by width, then + * the zoom is set to 100%. For wide content, the behavor + * depends on the state of {@link WebSettings#getLoadWithOverviewMode()}. + * If its value is true, the content will be zoomed out to be fit + * by width into the WebView control, otherwise not. + * + * If initial scale is greater than 0, WebView starts with this value + * as initial scale. * Please note that unlike the scale properties in the viewport meta tag, * this method doesn't take the screen density into account. * |
