Listview, Bitmaps and FastScroll strange heap allocation

291 Views Asked by At

I have a strange allocation issue on a listview, populated with LOTS of views with bitmaps.

The strange thing is that if I scroll down the list manually, the system allocates more and more space on the heap and the app crashes with an infamous OutOfMemory. If I scroll down the list instead with fastscroll, the system correctly frees the heap! Of course, I reuse views...

Any idea on how to correct this?

1

There are 1 best solutions below

0
On

You can use LazyLoad images,

LazyList Github

and

LazyList Stackoverflow