开发者

Is it a good idea to put a WebView into each item of a ListView on Android?

Is it a good idea to put a WebView into each item of a ListView on Android? Or should I just use the TextView with Spannd?

I tried the Html.fromHtml() with ImageGetter to get the Spanned, but it does开发者_JAVA技巧 lots of parsing works for you and hard to customize it. And also it's different from what you see on a WebView.

Any idea would be helpful. Thanks.


You can use WebViews in ListView elements, if you absolutely need to. Afaik, the only problem with this solution is, that it takes a relatively long time for ListView to measure the height of the list elements which have WebViews. But if you tested it, and it worked alright, then it's good to go I think.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜