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?
I have tried to override
dispatchTouchEvent
on myActivity
as a plan B.In fact, it works indeed. Although it may cause some bugs somehow.