Dimezis / BlurView

Dynamic iOS-like blur of underlying Views for Android
Apache License 2.0
3.48k stars 331 forks source link

Not working with custom corner shape #214

Closed akashwebapps closed 3 months ago

akashwebapps commented 4 months ago

When I define the radius for each corner differently in a drawable shape, it clips out the children and shows a rectangular box. However, if I keep the corner radius the same without defining each corner individually, it works well.

Dimezis commented 4 months ago

Yes, this is a known limitation. clipToOutline doesn't work with complex shapes. You might want to subclass the BlurView and clip it to path on a Canvas level