通用图像加载器没有应用 imageLoader.loadImage 中的显示图像选项这是我的代码
DisplayImageOptions options = new DisplayImageOptions.Builder()
.showStubImage(R.drawable.loading_image_background)
.showImageForEmptyUri(R.drawable.ic_launcher)
.showImageOnFail(R.drawable.loading_image_background)
.cacheInMemory()
.cacheOnDisc()
.bitmapConfig(Bitmap.Config.RGB_565)
.displayer(new RoundedBitmapDisplayer (20))
.build();
ImageSize targetSize = new ImageSize(50, 50);
imageLoader.loadImage(image_poster_url, targetSize, options,
new SimpleImageLoadingListener() {
@Override
public void onLoadingComplete(String imageUri,
View view, Bitmap loadedImage) {
holder.posterImage.setImageBitmap(loadedImage);
}
});
图像被调整大小并在列表视图中完美显示。但显示选项(圆角位图 diplayer)不适用于图像。有什么建议么?