سؤال

Is there a way to load the images that will come on the screen soon as opposed to loading the images that are currently in view?

هل كانت مفيدة؟

المحلول

If you're asking how to pre-load images so they are freshly cached, so that when the corresponding ImageView comes on screen the loading is nice and fast, you could use (somewhat untested):

String uri = getUriOfImageAboutToComeOnScreen(...);
ImageLoader.getInstance().loadImage(uri, null /* or use a listener */);

Of course, the magic contained in getUriOfImageAboutToComeOnScreen() is up to you :)

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top