Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling multi-touch on my app [duplicate]

For some reasons I have to disable the multi-touch feature on my app. The user can press only one button at a time, or the app would crash. Is there any way to implement this requirement?

Thanks a lot!

like image 912
Paul Ma Avatar asked Jul 09 '12 09:07

Paul Ma


1 Answers

To prevent this you should turn off splitMotionEvents or windowEnableSplitTouch attribute inside ViewGroup were buttons are located.

android:splitMotionEvents="false"
like image 97
Dmytro Danylyk Avatar answered Nov 11 '22 09:11

Dmytro Danylyk