public static void Download(string url, ImageView imageView, Resources resources, Bitmap placeholder) { if(CancelPotentialDownload(url, imageView)) { var task = new DownloadImageTask(imageView); var drawable = new AsyncDrawable(resources, placeholder, task); imageView.SetImageDrawable(drawable); task.Execute(url); } }
public static void Download(string url, ImageView imageView, Resources resources, Bitmap placeholder) { if (CancelPotentialDownload(url, imageView)) { var task = new DownloadImageTask(imageView); var drawable = new AsyncDrawable(resources, placeholder, task); imageView.SetImageDrawable(drawable); task.Execute(url); } }