Search code examples
androidlazy-loadingandroid-imageviewandroid-lazyloading

How to listen for imageview is on screen?


I have a long list of icons (about 30) in my layout, so I am getting an OutOfMemory error in Android 2.3.3.

What I want to do is creating Drawable object if only necessary (icon is visible on the current scroll).

But how to now if imageview is on the screen or not? I couldn't find a listener for this.

My icons (png files) are already in drawables folder. There is no downloading process at all.


Solution

  • Try to use ImageLoader Library which provide you lots of custom option to load list with Images...enter link description here