How Can I disable or Block Touch in Android Studio for a whole Activity? I know how to disable touch for a Single or more Views but not how to disable it for a whole activity...
Asked
Active
Viewed 4,863 times
2 Answers
0
block touch event
getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE,
WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);
Jai Khambhayta
- 2,664
- 16
- 26