我正在使用ScaleGestureDetector和onTouchEvent(ACTION_DOWN和ACTION_MOVE),问题是当我缩放时,也会调用向下操作。有没有办法只检测秤?
onTouchEvent函数调用scaleGestureDetector
public boolean onTouchEvent(MotionEvent event) {
mScaleGestureDetector.onTouchEvent(event);
final int action = event.getAction();
switch (action & MotionEvent.ACTION_MASK) {
case MotionEvent.ACTION_DOWN: {