I have a layout that contains many views. Is there an easy way to disable all its views click events?
Here is a Kotlin extension function implementation of Parag Chauhan's answer
fun View.setAllEnabled(enabled: Boolean) { isEnabled = enabled if (this is ViewGroup) children.forEach { child -> child.setAllEnabled(enabled) } }