setOffsetZeroCornerEdgeBoundsEnabled

Set whether the delegate should attempt to alter the mask bounds of shapes that are symmetrical along a single axis in order to use ViewOutlineProvider for clipping on 22-32 where only fully symmetrical shapes can be clipped.

This is primarily useful for clipping views that are "attached" to the edge of the screen like navigation drawers and bottom sheets. The attached edge's outline bounds will be expanded past the edge of the screen and the Outline the view is clipped to will not be seen, making it look like the view has zeroed corners along the attached edge.

This method does not have any effect on API 14-21, before ViewOutlineProvider was introduced, or on API 33+ where ViewOutlineProvider is able to clip to a path.

Parameters

view

the client view

enabled

true if the clients bounds should be altered along the zero-corner edge when possible