New answers tagged

0

You can get the effective pointer index of moving finger by checking which pointer changed: private final int MAX_POINTER = 5; // 5 different touch pointers supported on most devices private float mLastTouchPositionX[]; private float mLastTouchPositionY[]; @Override public boolean onTouchEvent(MotionEvent aEvent) int tActionIndex = aEvent.getActionIndex(); ...



Top 50 recent answers are included