android gallery view “stutters” with deferred image loading adapter
I would like to create an deferred loading adapter for use with a Gallery widget. That is to say getView() returns an ImageView immediately, and later some other mechanism will asynchronously call its setImageBitmap() method. I did this by creating a "lazy" ImageView that extends ImageView . public class GalleryImageView extends ImageView { // ... other stuff here ... public void setImage(final Looper looper, final int position) { final Uri uri = looper.get(position); final String path = looper.sharePath(position); new Thread(new Runnable() { @Override public void run() { GalleryBitmap gbmp =