在我的monodroid应用程序中,我使用通用图像加载器在列表视图上显示图像。 在显示图像之前,我在图像上显示进度条。 我想在下载失败时添加默认图像。 可能吗? 这是我用它显示图像的代码:
ImageLoader = Com.Nostra13.Universalimageloader.Core.ImageLoader.Instance;
ImageLoader.DisplayImage(myobject.Images [0], imageView, Application.Options, newImageLoaderListener (progressbar));
这是一个单体代码。 感谢。
答案 0 :(得分:3)
使用ImageLoadingListener.onLoadingFailed()
。在onLoadingFailed()
。