Android - How to handle two finger touch

前端 未结 1 735
失恋的感觉
失恋的感觉 2021-01-18 11:43

The documentation say this about that:

A gesture starts with a motion event with ACTION_DOWN that provides the location of the first pointer down. A

相关标签:
1条回答
  • 2021-01-18 12:31

    I believe your code is missing the masking operation like:

    switch (motionaction & MotionEvent.ACTION_MASK) {
    case MotionEvent.ACTION_POINTER_DOWN:
    }
    

    This code should be able to check for ACTION_POINTER_DOWN.

    Good luck & tell us what happens.

    Tommy Kwee

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