I have a LinearLayout that acts like a container for views.
I'm inflating a different layout programatically and adding an OnClickListener and adding it in my LinearLayout.
What I want to achieve is to have the option to disable those OnClickListener on those views that I've inflated and added to my LinearLayout.
Can I just disable the OnClickListener on the parent LinearLayout to disable as well all the other child's OnClickListener?
Setting the parent LinearLayout click listener to null doesn't work though, any ideas? THanks.