summaryrefslogtreecommitdiffstats
path: root/core/java/android/webkit/WebView.java
diff options
context:
space:
mode:
authorMartin Kosiba <mkosiba@google.com>2013-09-24 02:52:20 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-09-24 02:52:20 -0700
commitdc7053be9ff1b89464063ed6a338fd29580b5abf (patch)
treef2b8f3488ced847ba6f85c9f0c8778c5309df8bd /core/java/android/webkit/WebView.java
parentff704b63dda946531b7e3774b2ac4211f63349c3 (diff)
parent4e31b8046da047d5286532776d6d169e09d21ce5 (diff)
downloadframeworks_base-dc7053be9ff1b89464063ed6a338fd29580b5abf.zip
frameworks_base-dc7053be9ff1b89464063ed6a338fd29580b5abf.tar.gz
frameworks_base-dc7053be9ff1b89464063ed6a338fd29580b5abf.tar.bz2
am 4e31b804: Merge "Update WebView documentation section about zoom." into klp-dev
* commit '4e31b8046da047d5286532776d6d169e09d21ce5': Update WebView documentation section about zoom.
Diffstat (limited to 'core/java/android/webkit/WebView.java')
-rw-r--r--core/java/android/webkit/WebView.java15
1 files changed, 11 insertions, 4 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index db11529..90cc72e 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -58,9 +58,6 @@ import java.util.Map;
* It uses the WebKit rendering engine to display
* web pages and includes methods to navigate forward and backward
* through a history, zoom in and out, perform text searches and more.</p>
- * <p>To enable the built-in zoom, set
- * {@link #getSettings() WebSettings}.{@link WebSettings#setBuiltInZoomControls(boolean)}
- * (introduced in API level {@link android.os.Build.VERSION_CODES#CUPCAKE}).
* <p>Note that, in order for your Activity to access the Internet and load web pages
* in a WebView, you must add the {@code INTERNET} permissions to your
* Android Manifest file:</p>
@@ -161,9 +158,18 @@ import java.util.Map;
* }
* });
*
- * webview.loadUrl("http://slashdot.org/");
+ * webview.loadUrl("http://developer.android.com/");
* </pre>
*
+ * <h3>Zoom</h3>
+ *
+ * <p>To enable the built-in zoom, set
+ * {@link #getSettings() WebSettings}.{@link WebSettings#setBuiltInZoomControls(boolean)}
+ * (introduced in API level {@link android.os.Build.VERSION_CODES#CUPCAKE}).</p>
+ * <p>NOTE: Using zoom if either the height or width is set to
+ * {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT} may lead to undefined behavior
+ * and should be avoided.</p>
+ *
* <h3>Cookie and window management</h3>
*
* <p>For obvious security reasons, your application has its own
@@ -222,6 +228,7 @@ import java.util.Map;
* <p>The {@code hdpi.css} stylesheet is only used for devices with a screen pixel ration of 1.5,
* which is the high density pixel ratio.</p>
* </li>
+ * </ul>
*
* <h3>HTML5 Video support</h3>
*