Multiple webviews could be a bad model for developers to follow.
bug:6206492 Change-Id: Ib650dbd74b5a00e6e373db74afe7cad242538a9b
This commit is contained in:
@@ -29,51 +29,6 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<WebView android:id="@+id/wv2"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<WebView android:id="@+id/wv3"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<WebView android:id="@+id/wv4"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<WebView android:id="@+id/wv5"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<WebView android:id="@+id/wv6"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<WebView android:id="@+id/wv7"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<WebView android:id="@+id/wv8"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<WebView android:id="@+id/wv9"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<WebView android:id="@+id/wv10"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
/>
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import com.example.android.apis.R;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sample creating 10 webviews.
|
* Sample creating 1 webviews.
|
||||||
*/
|
*/
|
||||||
public class WebView1 extends Activity {
|
public class WebView1 extends Activity {
|
||||||
|
|
||||||
@@ -40,32 +40,5 @@ public class WebView1 extends Activity {
|
|||||||
|
|
||||||
wv = (WebView) findViewById(R.id.wv1);
|
wv = (WebView) findViewById(R.id.wv1);
|
||||||
wv.loadData("<a href='x'>Hello World! - 1</a>", mimeType, null);
|
wv.loadData("<a href='x'>Hello World! - 1</a>", mimeType, null);
|
||||||
|
|
||||||
wv = (WebView) findViewById(R.id.wv2);
|
|
||||||
wv.loadData("<a href='x'>Hello World! - 2</a>", mimeType, null);
|
|
||||||
|
|
||||||
wv = (WebView) findViewById(R.id.wv3);
|
|
||||||
wv.loadData("<a href='x'>Hello World! - 3</a>", mimeType, null);
|
|
||||||
|
|
||||||
wv = (WebView) findViewById(R.id.wv4);
|
|
||||||
wv.loadData("<a href='x'>Hello World! - 4</a>", mimeType, null);
|
|
||||||
|
|
||||||
wv = (WebView) findViewById(R.id.wv5);
|
|
||||||
wv.loadData("<a href='x'>Hello World! - 5</a>", mimeType, null);
|
|
||||||
|
|
||||||
wv = (WebView) findViewById(R.id.wv6);
|
|
||||||
wv.loadData("<a href='x'>Hello World! - 6</a>", mimeType, null);
|
|
||||||
|
|
||||||
wv = (WebView) findViewById(R.id.wv7);
|
|
||||||
wv.loadData("<a href='x'>Hello World! - 7</a>", mimeType, null);
|
|
||||||
|
|
||||||
wv = (WebView) findViewById(R.id.wv8);
|
|
||||||
wv.loadData("<a href='x'>Hello World! - 8</a>", mimeType, null);
|
|
||||||
|
|
||||||
wv = (WebView) findViewById(R.id.wv9);
|
|
||||||
wv.loadData("<a href='x'>Hello World! - 9</a>", mimeType, null);
|
|
||||||
|
|
||||||
wv = (WebView) findViewById(R.id.wv10);
|
|
||||||
wv.loadData("<a href='x'>Hello World! - 10</a>", mimeType, null);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user