Detect multitouch with Ontouch listener Android

后端 未结 2 375
鱼传尺愫
鱼传尺愫 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

提交回复
热议问题