2010-01-27 47 views

回答

5
textView.setText(Html.fromHtml("<p>" + title + "</p>"); 

你也可以用戶的網絡視圖

WebView webview = new WebView(this); 
setContentView(webview); 

// Simplest usage: note that an exception will NOT be thrown 
// if there is an error loading this page (see below). 
webview.loadUrl("http://slashdot.org/"); 

// Of course you can also load from any string: 
String summary = "<html><body>You scored <b>192 points.</body></html>"; 
webview.loadData(summary, "text/html", "utf-8"); 

http://developer.android.com/reference/android/webkit/WebView.html

+0

嘿,我在問TextViews ..... – 2010-01-28 17:04:47

+0

Html.fromHtml()無法正常工作。標籤仍然按照原樣顯示 – 2010-01-28 17:05:54

相關問題