summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/WebView.java
diff options
context:
space:
mode:
authorMikhail Naganov <mnaganov@google.com>2013-09-06 14:36:28 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-09-06 14:36:29 +0000
commit498a5f5488446e1d5914f5d335ee02572c6201d1 (patch)
tree8ad82adb08d3b3bd5b168c0fa9a0586cf006ed7e /core/java/android/webkit/WebView.java
parentf96b104a7f6e4c2a8883b6d4de69e6de24aa8edc (diff)
parent003033665fd25ce90ed577146a65af10d1e9a151 (diff)
Merge "Add more docs for WebView's setInitialScale and setLoadWithOverviewMode" into klp-dev
Diffstat (limited to 'core/java/android/webkit/WebView.java')
-rw-r--r--core/java/android/webkit/WebView.java16
1 files changed, 12 insertions, 4 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index 18403ebc1a38..8fc3ce3de992 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -1123,10 +1123,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.
*