Last Updated: February 25, 2016
·
12.88K
· dmytrodanylyk

Disable multi touch for specific View in Android?

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:splitMotionEvents="false">

    <!--Multi touch is disabled here-->
</LinearLayout>