圆角 RoundedBitmapDrawable

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/nadiee/article/details/89194919

RoundedBitmapDrawable bitmapDrawable = RoundedBitmapDrawableFactory.create(view.getContext().getResources(), bitmap); bitmapDrawable.setCornerRadius(finalRadius); // 圆角
bitmapDrawable.setCircular(true); // 圆形 imageView.setImageDrawable(bitmapDrawable);

猜你喜欢

转载自blog.csdn.net/nadiee/article/details/89194919