wasabeef / glide-transformations

An Android transformation library providing a variety of image transformations for Glide.
Apache License 2.0
9.9k stars 1.41k forks source link

RoundedCorners is not working [Glide 4.8.0] #158

Open Thien658jjh opened 5 years ago

Thien658jjh commented 5 years ago

This is my code: image

I researched and tried many different things, but it still has not worked.

For the lower version I tried this one and it worked perfectly:

    .into(new BitmapImageViewTarget(imageView) {
                    @Override
                    protected void setResource(Bitmap resource) {
                        RoundedBitmapDrawable circularBitmapDrawable = RoundedBitmapDrawableFactory.create(context.getResources(), resource);
                        circularBitmapDrawable.setCornerRadius(25.0f); // radius for corners
                        view.setImageDrawable(circularBitmapDrawable);
                    }
                });

Please tell me what I have done wrong.. Thank you.