如何在Android中的ListView中延迟加载图像

白昼怎懂夜的黑 提交于 2020-04-06 08:38:30

问题:

I am using a ListView to display some images and captions associated with those images. 我正在使用ListView显示一些图像和与这些图像相关的标题。 I am getting the images from the Internet. 我正在从互联网上获取图像。 Is there a way to lazy load the images so while the text displays, the UI is not locked up and images are displayed as they are downloaded? 有没有一种方法可以延迟加载图像,以便在显示文本时不会锁定UI并在下载图像时显示它们?

The total number of images is not fixed. 图像总数不固定。


解决方案:

参考一: https://stackoom.com/question/2GzO/如何在Android中的ListView中延迟加载图像
参考二: https://oldbug.net/q/2GzO/How-to-lazy-load-of-images-in-ListView-in-Android
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!