android tp多点触摸

获取多点触摸tp点数,获取坐标值

@Override
public boolean onTouchEvent(MotionEvent event) {
     
event.getPointerCount()for (int j = 0; j < event.getPointerCount(); j++) {
     
    PointF piont = new PointF();
    piont.set(event.getX(j), event.getY(j));
    mPointFList.add(piont);
}
}

你可能感兴趣的:(Android,tp,android)