private void setImageOrPlaceholder ( ImageView iv , ImageHolder imageHolder ) { //cancel previous started image loading processes DrawerImageLoader . getInstance ( ) . cancelImage ( iv ) ; //set the placeholder iv . setImageDrawable ( DrawerImageLoader . getInstance ( ) . getImageLoader ( ) . placeholder ( iv . getContext ( ) , DrawerImageLoader . Tags . PROFILE . name ( ) ) ) ; //set the real image (probably also the uri) ImageHolder . applyTo ( imageHolder , iv , DrawerImageLoader . Tags . PROFILE . name ( ) ) ; }
small helper method to set an profile image or a placeholder