2016-05-08 44 views

回答

0

您可以使用MotionEvent對象記錄here。 檢查this training由谷歌如何檢測多個觸摸

更爲具體的規定:

// The coordinates of the current screen contact, relative to 
// the responding View or Activity. 
xPos = (int)MotionEventCompat.getX(event, index); 
yPos = (int)MotionEventCompat.getY(event, index);