Thursday 15 August 2013

android - How to load images that aren't on the screen -


I currently have a gridview that shows some thumbnail images. The problem I am running is that when I use images Scroll through, I can change the images because they are changing because they are changing, so I was thinking how to fix it. Is there a way to load images that are not on the screen, when I scroll, does not the user need to see the changes in the images?

The best way to avoid that effect is to first set an image on null If you have already been loaded in the getView () method of your adapter, then you can check an LRU cache. If so, set it up immediately, if not, load it asynchronously as a bitmap, set it to view and add it to the LRU cache.

No comments:

Post a Comment