Which one to use WebView or TextView in a list with HTML data in it?

前端 未结 2 1139
迷失自我
迷失自我 2021-02-13 21:13

In the name of performance which is better to use list of webview objects with custom array adapter defined or list of textview object again with custom adapter and html content

2条回答
  •  天命终不由人
    2021-02-13 21:37

    As a perfromance comparison ,I tried both of them but WebView with huge data is incredibily slow , my custom adapter could not even finish drawing until user respond to interface on the other hand textview is doing pretty good as a performance , i recommend using textview unless you need to do lots of html work inside text.

提交回复
热议问题