How to disable all click events of a layout?

后端 未结 7 1766
不知归路
不知归路 2020-12-16 10:51

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

7条回答
  •  鱼传尺愫
    2020-12-16 11:21

    I would implement onClickListener interface in your activity class and return false in onClick method. I feel it's the easiest way to solve your problem.

提交回复
热议问题