问题:
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
来源:oschina
链接:https://my.oschina.net/stackoom/blog/3214059