2012-01-14 3 views
0

HTML 코드에 webservice 문자열을 보내고 있습니다.이 HTML 코드에 TextView를 삽입해야합니다.HTML 코드를 Textview에 넣으십시오.

예 :

String str = "<b>Hello</b>"; 

// my attempt 
textView.setText(Html.fromHtml(str)); 
// this only convert to <b>Hello</b> instead of running the html code. 

답변

4

그럼 그 못생긴 트릭하지만 작동 :

textView.setText(Html.fromHtml(Html.fromHtml(str).toString())); 
+0

롤. 작품이다. –