@Override public boolean onSingleTapConfirmed(MotionEvent e) { if (mTapListener != null) { if (e.getX() < getWidth() / 4) { mTapListener.onLeftTap(); } else if (e.getX() > getWidth() / 4 * 3) { mTapListener.onRightTap(); } else { mTapListener.onCenterTap(); } } return false; }