我有一个充满ImageView的Gallery,并且ImageView是双指缩放和可翻译的。我的目标是,一旦ImageView无法再向左/右移动,Gallery就会滚动。所以有时ImageView需要处理触摸事件,有时Gallery需要处理触摸事件。我在我的ImageView的onTouchEvent方法中有逻辑用于何时发生切换,但我得到了意想不到的结果。我将在展示我的代码后解释问题://PinchZoomImageView.java@OverridepublicbooleanonTouchEvent(MotionEventevent){Log.i("PinchZoomImageV