[英]image can't be decoded
我正在使用通用图像加载器。它工作正常,但无法解码少量图像。
logcat错误-解码返回的错误图像无法解码。
请在下面的示例代码中找到相同的代码。
options = new DisplayImageOptions.Builder()
.showStubImage(R.drawable.iphoneicon_small).cacheInMemory()
.cacheOnDisc().displayer(new RoundedBitmapDisplayer(20))
.build();
imageLoader = ImageLoader.getInstance();
ImageLoaderConfiguration imgconfig = ImageLoaderConfiguration
.createDefault(activity);
imageLoader.init(imgconfig);
imageURL = contacts.get(AndroidJSONParsingActivity.LOGO_IMAGE);
imageLoader.displayImage(Utils.getEncodedUrl(imageURL),
holder.image_logo_icon, options);
在我的getview中应该有五个图像,但是它正在加载3个图像和我设置的两个默认图像,而不是从Web服务器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.