在通用图像加载器中为失败的下载添加图像

时间:2012-12-16 19:41:23

标签: android android-listview xamarin.android universal-image-loader

在我的monodroid应用程序中,我使用通用图像加载器在列表视图上显示图像。 在显示图像之前,我在图像上显示进度条。 我想在下载失败时添加默认图像。 可能吗? 这是我用它显示图像的代码:

    ImageLoader = Com.Nostra13.Universalimageloader.Core.ImageLoader.Instance;
ImageLoader.DisplayImage(myobject.Images [0], imageView,  Application.Options, newImageLoaderListener (progressbar));

这是一个单体代码。 感谢。

1 个答案:

答案 0 :(得分:3)

使用ImageLoadingListener.onLoadingFailed()。在onLoadingFailed()

中显示您的图片