Detect multitouch with Ontouch listener Android

后端 未结 2 361
鱼传尺愫
鱼传尺愫 2020-12-22 02:50

I currently have an imageview element that upon being touched, that tests if the action is an actiondown event, and if it is, it gets the coordinates of the touch with getra

相关标签:
2条回答
  • 2020-12-22 03:06

    Take a look at the ACTION_POINTER_DOWN action define in MotionEvent. This is the event that will get called when additional fingers come down after the first ACTION_DOWN triggers. You can use methods like getActionMasked() to assist you in determining which finger events are related to.

    MotionEvent Docs

    HTH

    0 讨论(0)
  • 2020-12-22 03:13

    This is a nice example

    0 讨论(0)
提交回复
热议问题