question: private boolean checkSelectForSwipe ( int action , MotionEvent motionEvent , int pointerIndex ) { if ( selected != null || action != MotionEvent . ACTION_MOVE ) { return false ; } if ( recyclerView . getScrollState ( ) == RecyclerView . SCROLL_STATE_DRAGGING ) { return false ; } final RecyclerView . ViewHolder vh = findSwipedView ( motionEvent ) ; if ( vh == null ) { return false ; } final int movementFlags = callback . getAbsMovementFlags ( recyclerView , vh ) ; final int swipeFlags = ( movementFlags & ACTION_MODE_SWIPE_MASK ) > > ( DIRECTION_FLAG_COUNT * ACTION_STATE_SWIPE ) ; if ( swipeFlags == 0 ) { return false ; } final float x = MotionEventCompat . getX ( motionEvent , pointerIndex ) ; final float y = MotionEventCompat . getY ( motionEvent , pointerIndex ) ; final float dx = x - initialTouchX ; final float dy = y - initialTouchY ; final float absDx = Math . abs ( dx ) ; final float absDy = Math . abs ( dy ) ; if ( absDx < slop && absDy < slop ) { return false ; } if ( absDx > absDy ) { if ( dx < 0 && ( swipeFlags & LEFT ) == 0 ) { return false ; } if ( dx > 0 && ( swipeFlags & RIGHT ) == 0 ) { return false ; } } else { if ( dy < 0 && ( swipeFlags & UP ) == 0 ) { return false ; } if ( dy > 0 && ( swipeFlags & DOWN ) == 0 ) { return false ; } } dX = dY = 0f ; activePointerId = MotionEventCompat . getPointerId ( motionEvent , 0 ) ; select ( ( SwipeOpenViewHolder ) vh , ACTION_STATE_SWIPE ) ; return true ; }
target:  Checks whether we should select a View for swiping.