我在onTouchListener中使用了一个手势检测器,但我希望能够进行捏合和单次按下的独立操作。是否有允许Android应用程序同时执行这两种操作的解决方法?
ScaleGestureDetector gestureDetector;
private class movePoint implements View.OnTouchListener {
public boolean onTouch(View v, MotionEvent event) {
gestureDetector.onTouchEvent(event);
switch (event.getAction()) {
case (MotionEvent.ACTION_DOWN):
break;
case (MotionEvent.ACTION_UP):
break;
}
}