Android Open Source - Android-Lib-AsyncImageLoader Work Item






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   ww w.j  av a 2s.com
import java.net.URL;

import android.graphics.BitmapFactory;
import android.widget.ImageView;

final class WorkItem {
    public final String                path;
    public final URL                   url;
    public final ImageView             imageView;
    public final BitmapFactory.Options options;
    public final int                   imageKind;
    public final int                   videoKind;
    public final OnImageLoadedListener listener;

    public WorkItem(final String path, final ImageView imageView, final BitmapFactory.Options options, final int imageKind, final int videoKind, final OnImageLoadedListener listener) {
        this.path      = path;
        this.url       = null;
        this.imageView = imageView;
        this.options   = options;
        this.imageKind = imageKind;
        this.videoKind = videoKind;
        this.listener  = listener;
    }

    public WorkItem(final URL url, final ImageView imageView, final BitmapFactory.Options options, final int imageKind, final int videoKind, final OnImageLoadedListener listener) {
        this.path      = null;
        this.url       = url;
        this.imageView = imageView;
        this.options   = options;
        this.imageKind = imageKind;
        this.videoKind = videoKind;
        this.listener  = listener;
    }
}




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