摘要:
private boolean isZoom = false;private float oldDist; private float spacing(MotionEvent event) { float x = event.getX(0) - event.getX(1); float y = event.getY(0) - event.getY(1); return FloatMath.sqrt(x * x + y * y); }@Overridepublic boolean onTouchEvent(MotionEvent event) {super.onTouchEvent(event) 阅读全文