how to implement lazy loading of images in gridview

后端 未结 4 1100
后悔当初
后悔当初 2020-12-16 08:26

I want to load images in a grid view using lazy loading. I have tried to implement this by using AsyncTask bet it is throwing concurrent future task error.Am loading images

相关标签:
4条回答
  • 2020-12-16 09:02

    Use this library https://github.com/nostra13/Android-Universal-Image-Loader There is loading in every style... list, grid etc

    0 讨论(0)
  • 2020-12-16 09:11

    Simple example showing lazy loading gridview for android.

    https://github.com/desertjim/LazyLoadingGridView

    0 讨论(0)
  • 2020-12-16 09:15

    Here is the best link you can find around for working with images : http://android-developers.blogspot.fr/2010/07/multithreading-for-performance.html

    The code is dedicated to ListViews but would work with GridView as well. It's quite complicated but performance is just stunning.

    0 讨论(0)
  • 2020-12-16 09:18

    You can use smart image view that download the image form the HTTP url in the background. It is open source and its source code is available at this link..

    0 讨论(0)
提交回复
热议问题