florent37 / ShapeOfView

Give a custom shape to any android view, Material Design 2 ready
Apache License 2.0
3.12k stars 400 forks source link

Click also work out of custom shape #63

Open arefhosseini opened 4 years ago

arefhosseini commented 4 years ago

I have a custom shape in my layout & if I click on out of my shape It also works. That makes an issue to overlapping shapes.

<com.github.florent37.shapeofview.shapes.ArcView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:shape_arc_height="24dp"
    app:shape_arc_position="bottom">

    <View
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:clipChildren="false"
        android:background="@color/primaryColorGradient1"/>
</com.github.florent37.shapeofview.shapes.ArcView>

How can I solve it?