How can I download ListView HTML images asynchronously?

ぐ巨炮叔叔 提交于 2019-12-02 11:05:36
Jeff Axelrod

I'm going to abandon my original idea of using HTML TextView to render my images since I don't think it will be a problem to limit the layout to a single image per TextView. For those who still really want to do this, this answer should guide you to the right solution. You'd have to pass the TextView to the BitmapDownloaderTask and in onPostExecute call setText again but with the newly downloaded or "decached" image.

It might also be necessary to force an update of the row in the ListView per Romain Guy's guidance.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!