Code example for ImageView

Methods: setImageBitmap, clearAnimation

0
			forceDownload(imageView, friend);
		} 
		else { 
			SurespotLog.v(TAG, "loading bitmap from cache: %s, %s",friend.getName(), imageUrl);
			cancelPotentialDownload(imageView, friend);
			imageView.clearAnimation();
			imageView.setImageBitmap(bitmap);
			//imageView.setBackgroundColor(imageView.getResources().getColor(android.R.color.transparent)); 
 
 
		} 
	} 
 
	/** 
	 * 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. 
	 */ 
	private static void forceDownload(ImageView imageView, Friend friend) {
		if (cancelPotentialDownload(imageView, friend)) {
			BitmapDownloaderTask task = new BitmapDownloaderTask(imageView, friend);
			DownloadedDrawable downloadedDrawable = new DownloadedDrawable(task);