EX08_03.java
上传用户:vip_99
上传日期:2021-03-27
资源大小:61159k
文件大小:1k
- package irdc.ex08_03;
- import android.app.Activity;
- import android.os.Bundle;
- import android.webkit.WebView;
- public class EX08_03 extends Activity
- {
- private WebView mWebView1;
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState)
- {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main);
-
- mWebView1 = (WebView) findViewById(R.id.myWebView1);
- /*自行设置WebView要显示的网页内容*/
- mWebView1.
- loadData(
- "<html><body><p>Subscribe to my Blog</p>" +
- "<div class='widget-content'> "+
- "<a href=http://www.wretch.cc/blog/blackoa&rss20=1>" +
- "<img src=http://angelosu.googlepages.com/feeds128.png />" +
- "<a href=http://www.wretch.cc/blog/blackoa>Link Blog</a>" +
- "</body></html>", "text/html", "utf-8");
- }
- }