What android API version you testing at? Outline
class has method canClip()
defining whether the outline can be used to clip a view. And it says As of API 33, all Outline shapes support clipping. Prior to API 33, only Outlines that could be represented as a rectangle, circle, or round rect supported clipping
. So there is no way to clip view to path on pre-33 API without creating custom view