public class ImageLoaderLoadingListener extends SimpleImageLoadingListener{
ImageView iv=null;
public ImageLoaderLoadingListener(ImageView image)
{
this.iv=image;
}
public void onLoadingComplete(String imageUri,
View view, Bitmap loadedImage){
if(this.iv!=null)
{
super.onLoadingComplete(imageUri, this.iv,
loadedImage);
this.iv.setImageBitmap(BitmapUtil
.transform(loadedImage));
}
}
@Override
public void onLoadingFailed(String imageUri, View view,
FailReason failReason) {
// TODO Auto-generated method stub
super.onLoadingFailed(imageUri, view, failReason);
Toast.makeText(AppManager.getAppManager().currentActivity(),cn.sharing8.blood.R.string.load_photo_fail,Toast.LENGTH_SHORT).show();
}
}
ImageView iv=null;
public ImageLoaderLoadingListener(ImageView image)
{
this.iv=image;
}
public void onLoadingComplete(String imageUri,
View view, Bitmap loadedImage){
if(this.iv!=null)
{
super.onLoadingComplete(imageUri, this.iv,
loadedImage);
this.iv.setImageBitmap(BitmapUtil
.transform(loadedImage));
}
}
@Override
public void onLoadingFailed(String imageUri, View view,
FailReason failReason) {
// TODO Auto-generated method stub
super.onLoadingFailed(imageUri, view, failReason);
Toast.makeText(AppManager.getAppManager().currentActivity(),cn.sharing8.blood.R.string.load_photo_fail,Toast.LENGTH_SHORT).show();
}
}