'How to disable multi touch with Android P?

Add the following code in theme.xml and refer it with android:theme attribute on AndroidManifest.xml.

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

And it works well below Android P.

Unfortunately, it does't work on some devices running with Android 9.0.

Guys, how can I figure it out?



Solution 1:[1]

I faced the same issue. But if you need to disable multitouch per view (e.g. for a recycerview) you can use android:splitMotionEvents="false" inside your layout. Working fine with Android P.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 G00fY