.apply(RequestOptions.bitmapTransform(RoundedCorners(정수 값)))
Glide를 사용해서 이미지를 표시할 때, 모서리를 둥글게 하려면 위의 코드를 추가하면 된다.
Glide.with(this)
.load(R.drawable.sample)
.into(mBinding.ivMain)
Glide.with(this)
.load(R.drawable.sample)
.apply(RequestOptions.bitmapTransform(RoundedCorners(80)))
.into(mBinding.ivMain)
댓글