diff options
author | Trevor Johns <trevorjohns@google.com> | 2011-01-20 13:19:25 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-20 13:19:25 -0800 |
commit | 2ca4d8b7b97f20c8ad6897fc8c0c95616c0e80c6 (patch) | |
tree | f80a37c98865b224bb6e62864821e5d16e3ca60e /docs/html | |
parent | 913d04aa3b187beffd7691acb1e61a8b09810bbe (diff) | |
parent | b99d136f255d9f9270d4d1e224bd48030a9e6fb2 (diff) | |
download | frameworks_base-2ca4d8b7b97f20c8ad6897fc8c0c95616c0e80c6.zip frameworks_base-2ca4d8b7b97f20c8ad6897fc8c0c95616c0e80c6.tar.gz frameworks_base-2ca4d8b7b97f20c8ad6897fc8c0c95616c0e80c6.tar.bz2 |
Merge "Fixing bugs in HelloWebView tutorial on developer.android.com." into honeycomb
Diffstat (limited to 'docs/html')
-rw-r--r-- | docs/html/guide/tutorials/views/hello-webview.jd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/html/guide/tutorials/views/hello-webview.jd b/docs/html/guide/tutorials/views/hello-webview.jd index c4388ea..a927b04 100644 --- a/docs/html/guide/tutorials/views/hello-webview.jd +++ b/docs/html/guide/tutorials/views/hello-webview.jd @@ -12,8 +12,8 @@ we'll create a simple Activity that can view web pages.</p> <pre> <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:layout_height="fill_parent" android:orientation="vertical"> <WebView @@ -69,7 +69,7 @@ private class HelloWebViewClient extends WebViewClient { <li>Now, in the <code>onCreate()</code> method, set an instance of the <code>HelloWebViewClient</code> as our WebViewClient: - <pre>webview.setWebViewClient(new WebViewClientDemo());</pre> + <pre>webview.setWebViewClient(new HelloWebViewClient());</pre> <p>This line should immediately follow the initialization of our WebView object.</p> <p>What we've done is create a WebViewClient that will load any URL selected in our |