JustMe JustMe - 5 months ago 39
Android Question

How to disable all click events of a layout?

I have a layout that contains many views. Is there an easy way to disable all its views click events?


I would create a ViewGroup with all the views that you want to enable/disable at the same time and call setClickable(true/false) to enable/disable clicking.