Saturday, November 9, 2019

Round image corners at runtime using Glide #android #Glide


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:

Alert Dialog Box

Alert Dialog Box Android AlertDialog   can be used to display the dialog message with OK and Cancel buttons. It can be used to inter...