Multiple Views OnTouch Events

后端 未结 3 1367
迷失自我
迷失自我 2021-01-02 05:56

We are developing an application where we need to capture MotionEvents from multiple views simultaneously. When we try to do so, Android only dispatches events to the first

3条回答
  •  滥情空心
    2021-01-02 06:41

    At least Android 3.0 adds support for splitting touch events between multiple Views.

    Split touch events is enabled by default when AndroidManifest defines either android:minSdkVersion="11" or android:targetSdkVersion="11". For explanation See android:splitMotionEvents and android:windowEnableSplitTouch

提交回复
热议问题