0
文本視圖 當我嘗試從網上得到的文本和文本中顯示它查看它生成的HTML標籤Android的文本視圖顯示html標籤的文本
像
男孩:你怎麼樣
女孩:&nbps;細
有沒有辦法消除從文本視圖這些文字
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:orientation="horizontal" >
<TextView
android:id="@+id/jokeText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="20dp"
android:textColor="#DC143C"
android:paddingLeft="20dp"
android:paddingTop="10dp"
android:text=""/>
</LinearLayout>
我需要幫助請解決這個問題。
是的。我也會寫同樣的答案。 –
感謝兄弟在文本視圖中有一個變量集,我從網上獲得。我想我的文本免費的HTML標記 –
public String removeHtml(String html){ return Html.fromHtml(your_html_text).toString(); } – Renjith