Qw4z1
Qw4z1

Reputation: 3030

Preloading some images for listview with UniversalImageLoader

I am using Sergey Tarasevich's library Universal Image Loader in my Android project to load images into a ListView. At the moment I am loading my pictures in the getView() method in my adapter and everything works as expected.

The problem is I want to load some images (three or four) in advance so that the user doesn't need to wait for the images to load when scrolling. What would be the best approach to achieve this using Universal Image Loader?

Upvotes: 4

Views: 3067

Answers (1)

nostra13
nostra13

Reputation: 12407

You can use loadImage(...) for following images in getView(...) to pre-cache them.

Upvotes: 11

Related Questions