设置圆角图片

1.DisplayImageOptions圆角图片

DisplayImageOptions displayImageOptions=new DisplayImageOptions.Builder()
                        .showImageForEmptyUri(R.mipmap.ic_launcher)//空url//默认图
                        .showImageOnFail(R.mipmap.ic_launcher)//请求失败
                        .showImageOnLoading(R.mipmap.ic_launcher)//加载过程中
                        .cacheInMemory(true)
                        .cacheOnDisk(true)
                        .displayer(new RoundedBitmapDisplayer(360))//圆角图片
                        .bitmapConfig(Bitmap.Config.ARGB_8888)//配置图片解码格式
                        .build();

猜你喜欢

转载自blog.csdn.net/wangshuo_/article/details/85840499
今日推荐