Phổ ảnh Loader đã không áp dụng các tùy chọn hình ảnh trưng bày tại imageLoader.loadImage Đây là mã của tôiPhổ ảnh Loader không áp dụng displayImageOptions trong 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);
}
});
ảnh là lại có kích thước và hiển thị một cách hoàn hảo trong listview. nhưng tùy chọn hiển thị (ngoại trừ bitmap tròn) không được áp dụng cho hình ảnh. bất kỳ đề xuất?