From e46673a0a756898eb919bc1ae3db5d7c78a97848 Mon Sep 17 00:00:00 2001 From: Teng-Hui Zhu Date: Wed, 28 Mar 2012 15:58:16 -0700 Subject: [PATCH] Multiple webviews could be a bad model for developers to follow. bug:6206492 Change-Id: Ib650dbd74b5a00e6e373db74afe7cad242538a9b --- samples/ApiDemos/res/layout/webview_1.xml | 45 ------------------- .../example/android/apis/view/WebView1.java | 29 +----------- 2 files changed, 1 insertion(+), 73 deletions(-) diff --git a/samples/ApiDemos/res/layout/webview_1.xml b/samples/ApiDemos/res/layout/webview_1.xml index 67cea3ac5..e70db5f85 100644 --- a/samples/ApiDemos/res/layout/webview_1.xml +++ b/samples/ApiDemos/res/layout/webview_1.xml @@ -29,51 +29,6 @@ android:layout_height="wrap_content" android:layout_width="match_parent" /> - - - - - - - - - - - - - - - - - - diff --git a/samples/ApiDemos/src/com/example/android/apis/view/WebView1.java b/samples/ApiDemos/src/com/example/android/apis/view/WebView1.java index d6a4efe6f..1426b6583 100644 --- a/samples/ApiDemos/src/com/example/android/apis/view/WebView1.java +++ b/samples/ApiDemos/src/com/example/android/apis/view/WebView1.java @@ -24,7 +24,7 @@ import com.example.android.apis.R; /** - * Sample creating 10 webviews. + * Sample creating 1 webviews. */ public class WebView1 extends Activity { @@ -40,32 +40,5 @@ public class WebView1 extends Activity { wv = (WebView) findViewById(R.id.wv1); wv.loadData("Hello World! - 1", mimeType, null); - - wv = (WebView) findViewById(R.id.wv2); - wv.loadData("Hello World! - 2", mimeType, null); - - wv = (WebView) findViewById(R.id.wv3); - wv.loadData("Hello World! - 3", mimeType, null); - - wv = (WebView) findViewById(R.id.wv4); - wv.loadData("Hello World! - 4", mimeType, null); - - wv = (WebView) findViewById(R.id.wv5); - wv.loadData("Hello World! - 5", mimeType, null); - - wv = (WebView) findViewById(R.id.wv6); - wv.loadData("Hello World! - 6", mimeType, null); - - wv = (WebView) findViewById(R.id.wv7); - wv.loadData("Hello World! - 7", mimeType, null); - - wv = (WebView) findViewById(R.id.wv8); - wv.loadData("Hello World! - 8", mimeType, null); - - wv = (WebView) findViewById(R.id.wv9); - wv.loadData("Hello World! - 9", mimeType, null); - - wv = (WebView) findViewById(R.id.wv10); - wv.loadData("Hello World! - 10", mimeType, null); } }