// -------------------------------------------------------------------------------------------------------------------- // Touch Event @Override public boolean onInterceptTouchEvent(MotionEvent event) { if (flipByTouchEnabled) { return cards.handleTouchEvent(event, false); } else { return false; } }
@Override public boolean onTouchEvent(MotionEvent event) { if (playPauseCallBack != null && (event.getAction() == MotionEvent.ACTION_DOWN)) { playPauseCallBack.pauseOrPlay(bufferedViews.get(bufferIndex), event); } if (flipByTouchEnabled) { return cards.handleTouchEvent(event, true); } else { return false; } }