如何$图像的对$ pvent重载列表视图中使用自定义适配器时刷新列表视图 [英] How to prevent reloading of images in listview with custom adapter when refresh listview

查看:220
本文介绍了如何$图像的对$ pvent重载列表视图中使用自定义适配器时刷新列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 displayImage()方法。我想,如果我在我的列表视图重置适配器,图像不应该重新加载,如果URL是一样的previous的URL。

I am using displayImage() method of UniversalImageLoader library in the adapter class, which sets images(from url) in the list items. i want if i reset adapter in my listview, images should not reload if the urls are same as previous urls.

推荐答案

我尝试了上述解决方案,但没有找到有用的,最后我通过保存从URL影像设备(如位图)解决我的问题,然后在列表视图中获得那里。

I tried above solutions but not find usefull, Finally i solved my problem by saving images from url to device(as bitmap) then get in list view from there.

这篇关于如何$图像的对$ pvent重载列表视图中使用自定义适配器时刷新列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆