Android ImageView 设置圆角

      RequestOptions options = new RequestOptions().bitmapTransform(new
                                    RoundedCorners(30));//图片圆角为30

       Glide.with(getContext()).load(result.getImage()) //图片地址
                                    .apply(options)
                                    .error(R.drawable.error)
                                    .into(getView().getImage());

猜你喜欢

转载自blog.csdn.net/weixin_37077736/article/details/124972148