Disable All Touch Screen Interactions While Animation
问题 I wish to disable all the touch screen interactions while an animation is being displayed. I don't wish to use the setClickable() method on the buttons at the start or end of the animation because there are a large number of buttons. Any suggestions? 回答1: In your Activity, you can override onTouchEvent and always return true; to indicate you are handling the touch events. You can find the documentation for that function there. Edit Here is one way you can disable touch over the whole screen