非常不错,偶尔点击有点问题
Opened this issue · 1 comments
senlinxuefeng commented
非常不错,偶尔点击有点问题
chocolatezhu commented
public boolean onTouchEvent(MotionEvent event) {
int action = event.getAction();
int x = (int) event.getX();
int y = (int) event.getY();
switch (action) {
case MotionEvent.ACTION_UP:
doClickAction(x, y);
break;
default:
break;
}
return true;
}
取消手势监听,直接在onTouchEvent里这样写就可以了,onSingleTapUp好像有防抖动检测