Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }