Code example for ImageView

Methods: getTag

0
    /** 
     * @param imageView to be set after download, should be set position to tag 
     */ 
    public ImageDownloadTask(ImageView imageView, ImageDownloadHelper<String> imageDownloadHelper) {
        this.imageView = imageView;
        this.tag = (Integer) (imageView.getTag()); // これ以降 tag の値が変わるということやんね
        this.imageDownloadHelper = imageDownloadHelper;
++queueInCount;
++runningCount;
    } 
 
    @Override 
    protected void onPreExecute() { 
        imageDownloadHelper.onPreDownload(imageView);
        super.onPreExecute(); 
    } 
 
    /** 
     * 取得した画像は自動的にキャッシュします。 
     *   
     * @param urls [0] image URL