Closed wuh876 closed 4 years ago
具体你是怎么监听的呢
mTouchGestureListener = new DoodleOnTouchGestureListener(mDoodleView, new DoodleOnTouchGestureListener.ISelectionListener() { @Override public void onSelectedItem(IDoodle doodle, IDoodleSelectableItem selectableItem, boolean selected) { }
@Override
public void onCreateSelectableItem(IDoodle doodle, float x, float y) {
}
}) {
@Override
public boolean onDoubleTap(MotionEvent e) {
return super.onDoubleTap(e); }
@Override
public void onLongPress(MotionEvent e) {
}
};
在DoodleTouchDetector里禁掉了长按事件, setIsLongpressEnabled(false)
. 因为这个交互跟其他交互有冲突
谢谢
@Override public void onLongPress(MotionEvent e) { }
这个事件怎么不执行呢