Ejemplo n.º 1
0
 public void DisplayImage(String url, ImageView imageView, boolean roundCorner) {
   imageViews.put(imageView, url);
   Bitmap bitmap = memoryCache.get(url);
   if (bitmap != null) {
     if (imageView instanceof ImageViewCrop) {
       ((ImageViewCrop) imageView).setImageBitmap(bitmap);
     } else imageView.setImageBitmap(bitmap);
   } else {
     queuePhoto(url, imageView, roundCorner);
   }
 }
Ejemplo n.º 2
0
 public void DisplayImage(String url, ImageView imageView, int rotationDegrees) {
   imageViews.put(imageView, url);
   Bitmap bitmap = memoryCache.get(url + rotationDegrees);
   if (bitmap != null) {
     if (imageView instanceof ImageViewCrop) {
       ((ImageViewCrop) imageView).setImageBitmap(bitmap);
     } else imageView.setImageBitmap(bitmap);
   } else {
     queuePhoto(url, imageView, rotationDegrees);
   }
 }