I have a layout container like described below:
<ConstraintLayout
android:id="@+id/container"
...>
<child1/>
<child2/>
<child3/>
</ConstraintLayout>
In my code, I have to attach a click listener to the container to be able to execute an action when the user clicks on any area of the container. What is the best solution to exclude the child2 from this constraint? I mean, all the container areas should be clickable but the child2 shouldn't.
Thank you in advance