-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
No border #190
Comments
You can have a workaround for this particular case like this: |
@slavzilla , I have used: But not getting expected result either |
Yeah man, I eventually gave up. Nobody replied for like two years... |
This is more a request than an issue. If you pass borderSize = 0 it actually is not 0 it is 1 pixel. This is an issue if you want to generalize a function let's say like this:
fun ImageView.loadCircularImage(uri: String?, width: Float){ val options = RequestOptions() .placeholder(android.R.color.transparent) Glide.with(context).setDefaultRequestOptions(options).load(uri) .apply(RequestOptions.bitmapTransform(CropCircleWithBorderTransformation(context.dp2px(width), Color.WHITE))) .into(this) }
If I want no border I would simply pass 0 to this function but It won't actually work because of this:
paint.setStrokeWidth(borderSize);
I could use
CropCircleTransformation
but it is deprecated.The text was updated successfully, but these errors were encountered: