I am adding a Fragment fragment with clickable views to my Activity.
I have noticed that if I click on a point inside that Fragment which does not have any OnClickListener, the click event leaks to the layout below, in this case, the Activity layout. If there is a view with its own OnClickListener in that point, its code is executed. I can prevent this click by adding a dummy OnClickListener to the Fragment background but I want to know if there is a better option.
Thanks