I have a list adapter that shows a large photo on each line. I am extracting a bitmap from a disk in a stream in the ListAdapter.getView () method. This works great, but itโs a little annoying that when you scroll through the user, they will see the top of the new line that appears on the screen with an empty ImageView. The stream for reading the bitmap from the disk completes quite quickly, and then redrawing occurs.
Is there a good example in the world of the ListAdapter to signal that the โnextโ line can appear on the screen instantly? Ideally, I would like to start a stream to load a bitmap for this invisible line and get a bitmap in my memcache, so if the user scrolls to this cell, the bitmap will already be loaded.
I suppose I would need to know that (1) the user scrolls down and (2) the top edge of the next invisible line is about 20 pixels or some value is not visible.
thanks
source share