我读过有关 LowProfileImageLoader
。它只会在用户可以看到图像时加载图像,并且会避免阻塞 UI 线程。
我添加了它并在我的应用程序上进行了测试。所有 25 张图像均来自完全相同的 URL。使用默认图像需要一点时间来加载,但所有其他图像都被缓存,并且滚动变得非常快。
使用LowProfileImageLoader
时,图像不会被缓存,它会一一加载,即使它是完全相同的图像。当我向下滚动然后向上滚动时,它会再次加载图像。并且加载它们需要很长时间。
我是否需要配置某些内容才能将图像保留在缓存中?如何配置此 LowProfileImageLoader
?
I've read about the LowProfileImageLoader
. It will only load the image when the user can see it and will avoid blocking the UI thread.
I added it and tested on my application. All 25 images are from the exact same URL. With the default image it took a little to load but all other images were cached, and the scroll got super fast.
With the LowProfileImageLoader
the images were not cached, it was loading 1 by 1 even though it was the exact same image. And when I scrolled down then up it would load the image all over again. And it takes a long time to load them.
Do I have to configure something to keep the images on cache? How do I configure this LowProfileImageLoader
?
发布评论
评论(1)
根据我通过查看 Windows Phone 芒果视频演示的了解,图像会自动缓存,无需您执行任何操作。
我正在谈论的视频: http://www.wpcentral.com/multitasking-mango-演示详细信息
From what I understood by looking at a windows phone mango video presentation, images are automatically cached without you doing anything.
Video I'm talking about: http://www.wpcentral.com/multitasking-mango-demoed-detail