@ Override public boolean onTouchEvent ( MotionEvent event ) { super . onTouchEvent ( event ) ; boolean clickCaptured = processTouchEvent ( event ) ; boolean scrollCaptured = scroller != null && scroller . onTouchEvent ( event ) ; boolean singleTapCaptured = getGestureDetectorCompat ( ) . onTouchEvent ( event ) ; return clickCaptured || scrollCaptured || singleTapCaptured ; }
Delegates touch events to the scroller instance initialized previously to implement the scroll effect . If the scroller does not handle the MotionEvent NoxView will check if any NoxItem has been clicked to notify a previously configured OnNoxItemClickListener .