Android/Glide
[Android] Glide, 모서리 둥글게 처리하기
O_Gyong
2023. 2. 6. 09:47
.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)