Round image corners at runtime using Glide library
In this post, we will check how to make Image corners round at runtime.
RequestOptions requestOptions = new RequestOptions();
requestOptions = requestOptions.transforms(new CenterCrop(),newRoundedCornersTransformation(39,0,RoundedCornersTransformation.CornerType.TOP_RIGHT));
Glide.with(this)
.load(userData.getCoverpicture())
.apply(requestOptions)
.into(coverpic);
No comments:
Post a Comment