我想你可以實現通過使用ACTION_DOWN & ACTION_POINTER_DOWN,其中後是第二觸摸相同。你需要在你的touchlistner中處理這些事件。這個監聽器可以在你的根佈局上。
public boolean onTouchEvent(MotionEvent event) {
}
See here, some excerpts are:
When multiple pointers touch the screen at the same time, the system generates the following touch events:
ACTION_DOWN—For the first pointer that touches the screen. This starts the gesture. The pointer data for this pointer is always at index 0 in the MotionEvent.
ACTION_POINTER_DOWN—For extra pointers that enter the screen beyond the first. The pointer data for this pointer is at the index returned by getActionIndex().
ACTION_MOVE—A change has happened during a press gesture.
ACTION_POINTER_UP—Sent when a non-primary pointer goes up.
ACTION_UP—Sent when the last pointer leaves the screen.
謝謝。我希望有一個更簡單的方法,但這將不得不做。 – Alin