Android Open Source - Android-Lib-AsyncImageLoader On Image Loaded Listener






From Project

Back to project page Android-Lib-AsyncImageLoader.

License

The source code is released under:

Apache License

If you think the Android project Android-Lib-AsyncImageLoader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package android.lib.asyncimageloader;
//from   w  w w .j  av  a2  s  . c  o m
import android.graphics.Bitmap;
import android.widget.ImageView;

/**
 * A callback when the loader completes a loading task.
 */
public interface OnImageLoadedListener {
    /**
     * Called when a {@link Bitmap} loads successfully.
     * @param imageView the {@link ImageView} to display the loaded {@link Bitmap}.
     * @param bitmap the loaded {@link Bitmap}.
     * @return the bitmap to be displayed.
     * <p>The original {@link Bitmap} could be returned, or a modified one.</p>
     */
    Bitmap onImageLoaded(ImageView imageView, Bitmap bitmap);

    /**
     * Called when there was a error in the loading process.
     * @param imageView the {@link ImageView} supposed to display any loaded {@link Bitmap}s.
     * @param exception the @{link Exception} thrown during the loading process.
     */
    void onError(ImageView imageView, Exception exception);
}




Java Source Code List

android.lib.asyncimageloader.AsyncImageLoader.java
android.lib.asyncimageloader.BitmapCache.java
android.lib.asyncimageloader.DiskCache.java
android.lib.asyncimageloader.GalleryAdapter.java
android.lib.asyncimageloader.OnImageLoadedListener.java
android.lib.asyncimageloader.PauseOnScroll.java
android.lib.asyncimageloader.UpdateImageView.java
android.lib.asyncimageloader.WorkItem.java