android: disable multi-touch

Sometimes operating two controls on the interface at the same time will bring some unexpected problems, which can be blocked by the following methods:

Add the following code to the Theme referenced by application:

<item name="android:windowEnableSplitTouch">false</item>
<item name="android:splitMotionEvents">false</item>

You can disable global multi-touch, if you want to do it separately, add it in the required xml


Method 2 Add in the parent layout that needs to shield the layout

android:splitMotionEvents="false"

Guess you like

Origin blog.csdn.net/as425017946/article/details/122496015