I'm trying to display all contact list in my activity, what is the best way for showing/caching the contact photos? assuming I have 1000+ contacts and all of them have profile photo.

I already read about Google volley library but it's for loading pictures from HTTP.

Also, I've read the Caching Bitmaps in developer.com.

  1. Whats is the difference between the two?
  2. what should I use to load contacts profile image?

Thanks for the help

有帮助吗?

解决方案

http://square.github.io/picasso/

...............................

File file = new File(uri);
        Picasso.with(context).load(file).skipMemoryCache()
                .placeholder(R.drawable.note_fold).into(holder.thumb);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top