Delete views that are not visible in gridView

This is the next issue for glitches in the Android grid in Galaxy 3. I fixed some things and now I get the gridView to load. I have many images in a gridView, so I need to scroll down to see them. If I slowly scroll down, everything will be all right. But if I scroll quickly, the application crashes with an OutOfMemory error. So, Iassume, that species that are more visible take time to remove. Is there a quick way to manually remove them and prevent this? You can see all gridView code in this
question (and if you can also answer it, that would be great)

+4
source share
1 answer

Because when u scrolls your gridview, the getView () method is called using an adapter. This method is responsible for the given image, but due to the poor performance of the server image is not created at one time for installation in this view, so an outofmemory error occurs.

Use this example in the Android code : ListView adapter adaptation help with ImageLoader (LazyList) class .

This should help you.

0
source

All Articles