Glide.with(imageView.context)
.load(url)
.apply(
RequestOptions().transform(
CenterCrop(),
RoundedCorners(imageView.context.resources.getDimensionPixelSize(R.dimen.dim_cooper_icon_round))
)
)
.placeholder(R.mipmap.dim_cooper_ic_xiezuo_wendang)
.error(R.mipmap.dim_cooper_ic_xiezuo_wendang)
.into(imageView)
Glide 圆角 CenterCrop
最新推荐文章于 2024-06-28 16:47:58 发布