Android ListView smooth navigation while images from SDCard

痴心易碎 提交于 2021-01-28 06:03:50

问题


I saw a lot of implementations of smooth downloading images from web and showing them in listView with cache. Now I have the following situation: I'm storing images to SDCard and sometimes my listView shows them instead of images from web resource. In this case navigation in listView is not smooth. Do you know any good implementation of listView with image from sdCard?


回答1:


Multithreading is the answer! http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html Just ignore the the sections for downloading, but idea is the same!

Then check this code : Lazy load of images in ListView



来源:https://stackoverflow.com/questions/11500003/android-listview-smooth-navigation-while-images-from-sdcard

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