好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

html中的table在android端显示_html/css_WEB-ITnose

开始都是用Html.fromHtml(source);来显示html的

但是你会发现,对于style,table等等一系列的标签它都没有解析的

只好换一个思路,用webview去做

在xml中加入

android:id="@+id/wv1"

android:layout_width="fill_parent"

android:layout_height="fill_parent" />

然后在activity中

WebView wView = (WebView)findViewById(R.id.wv1);

wView.getSettings().setDefaultTextEncodingName("UTF -8");

wView.loadData(source, "text/html; charset=UTF-8", null);

这样就可以了

版权声明:本文为博主原创文章,未经博主允许不得转载。

查看更多关于html中的table在android端显示_html/css_WEB-ITnose的详细内容...

  阅读:35次