New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RoundedCornersTransformation not working #16
Comments
Please tell me your source code. Glide.with(mContext)
.load(R.drawable.demo)
.bitmapTransform(new CenterCrop(mContext), new RoundedCornersTransformation(mContext, 100, 0))
.into(holder.image); |
your code can work ok。 |
@wasabeef from what I understand, we cannot use Glide's centerCrop() if we use bitmapTransform? |
Yeah.. It can't be used |
RoundedCornersTransformation and CropTransformation(mContext, 300, 100, CropTransformation.CropType.TOP),how can this two work together? |
Removing centerCrop fixed the issue for me. Thanks |
Check the code of .transform(new CenterCrop(context), new RoundedTransformation(...)) @wasabeef I think you should update https://github.com/wasabeef/glide-transformations#advanced-step-3 with the information that |
@TWiStErRob that doesn't work either, same results |
OK I was able to make it work by tweaking |
It should be using the output width/height, not the source Bitmap dimensions. This allows this transformation to play nicely with others. Fixes wasabeef#16
Sorry, I was wrong about |
In Adapter, sometime it is ok, but sometime, not, my code : if(opts.getRadius() != 0) {
builder.bitmapTransform(new FitCenter(imageView.getContext()),
new RoundedCornersTransformation(imageView.getContext(),
opts.getRadius(), 0));
}else {
builder.bitmapTransform(new FitCenter(imageView.getContext()));
} |
I missed the scaleType of ImageVIew was set centerCrop in xml, and when I used Glide.load.transformation not working... It's take too much time... OMG |
how to slove this in V4 generate code? |
It works probably... (I'm writing in Kotlin)
|
|
when CenterCrop ,RoundedCornersTransformation not working
The text was updated successfully, but these errors were encountered: