Example usage for android.widget ImageView toString

List of usage examples for android.widget ImageView toString

Introduction

In this page you can find the example usage for android.widget ImageView toString.

Prototype

public String toString() 

Source Link

Usage

From source file:com.chinaLife.claimAssistant.tools.sc_ImageDownloaderId.java

/**
 * Same as download but the image is always downloaded and the cache is not
 * used. Kept private at the moment as its interest is not clear.
 *///www  .  ja  va  2  s  . c  om
private void forceDownload(File file, String id, ImageView imageView) {
    // State sanity: url is guaranteed to never be null in
    // DownloadedDrawable and cache keys.
    if (file.getAbsolutePath() == null) {
        //         imageView.setImageResource(resid);
        return;
    }
    Log.i("", imageView.toString() + "-----" + file.getAbsolutePath());
    if (cancelPotentialDownload(file.getAbsolutePath(), imageView)) {
        BitmapDownloaderTask task = new BitmapDownloaderTask(imageView);
        DownloadedDrawable downloadedDrawable = new DownloadedDrawable(task, context, resid);
        imageView.setImageDrawable(downloadedDrawable);

        task.execute(file, id);
    }
}

From source file:com.zhihuigu.sosoOffice.utils.ImageDownloaderUrl.java

/**
 * Same as download but the image is always downloaded and the cache is not
 * used. Kept private at the moment as its interest is not clear.
 *//*from ww  w .j av  a2 s  .  com*/
private void forceDownload(String url, File file, String sql, ImageView imageView) {
    // State sanity: url is guaranteed to never be null in
    // DownloadedDrawable and cache keys.
    if (url == null) {
        imageView.setImageResource(resid);
        return;
    }
    Log.i("", imageView.toString() + "-----" + url);
    if (cancelPotentialDownload(url, imageView)) {
        BitmapDownloaderTask task = new BitmapDownloaderTask(imageView);
        DownloadedDrawable downloadedDrawable = new DownloadedDrawable(task, context, resid);
        imageView.setImageDrawable(downloadedDrawable);

        task.execute(url, file, sql);
    }
}

From source file:com.zhihuigu.sosoOffice.utils.ImageDownloaderId.java

/**
 * Same as download but the image is always downloaded and the cache is not
 * used. Kept private at the moment as its interest is not clear.
 *///from   w  ww .  j a v a 2 s . com
private void forceDownload(File file, String sql, String id, String pixelswidth, String pixelsheight,
        String request_name, ImageView imageView, String x, String y, String width, String height) {
    // State sanity: url is guaranteed to never be null in
    // DownloadedDrawable and cache keys.
    if (file.getAbsolutePath() == null) {
        //         imageView.setImageResource(resid);
        return;
    }
    Log.i("", imageView.toString() + "-----" + file.getAbsolutePath());
    if (cancelPotentialDownload(file.getAbsolutePath(), imageView)) {
        BitmapDownloaderTask task = new BitmapDownloaderTask(imageView);
        DownloadedDrawable downloadedDrawable = new DownloadedDrawable(task, context, resid);
        imageView.setImageDrawable(downloadedDrawable);

        task.execute(file, sql, id, pixelswidth, pixelsheight, request_name, x, y, width, height);
    }
}