通用映像加载roundedBitmapDisplayer问题映像、加载、问题、roundedBitmapDisplayer

2023-09-06 01:45:11 作者:泛起心酸

我使用的是最新的通用图像装载-1.9.2-快照与-sources.jar文件。它的工作的罚款。我想改变形象,以圆(圆)。我已经使用以下显示选项。

I'm using latest universal-image-loader-1.9.2-SNAPSHOT-with-sources.jar file. Its working fine. I want to change image to round(Circle). I have used following display options.

             DisplayImageOptions userimgoptions = new DisplayImageOptions.Builder()
                           .displayer(new RoundedBitmapDisplayer(35))
                           .showImageOnLoading(android.R.color.transparent)
                           .showImageForEmptyUri(R.drawable.picture_info_profile_img)
                           .showImageOnFail(R.drawable.picture_info_profile_img)
                           .cacheInMemory(true).cacheOnDisc(true)
                           .bitmapConfig(Bitmap.Config.RGB_565).build();

它不工作的一些图片。我已经测试到这一点低分辨率和高分辨率其不工作。

its not working for some images. I have tested this into low and high resolution its not working.

注意:在我的xml ImageView的高度和(55 * 55)

请您帮助我如何解决这个问题。我不能解决这个问题。

please kindly help me how to resolve this issue. i cant resolve this issue.

谢谢

推荐答案

如果你想有一个圆形图像,您可以更改 .displayer(新RoundedBitmapDisplayer(25)) .displayer(新RoundedBitmapDisplayer(1000))这为我工作。

If you want a circular image you can change .displayer(new RoundedBitmapDisplayer(25)) to .displayer(new RoundedBitmapDisplayer(1000)) which worked for me.