I would like to create a linear layout which would behave similarly to ImageButton.
At first, my child view failed to get click from parent. After investigating, what I need to do to make it work are:
So, I don't need to add these on every children.
android:duplicateParentState="true"
android:clickable="false"
I only add duplicateParentState
to one of my child view.
My child view is now listening to parent click event.