protected int getVerticalSnapPreference ( ) { return mTargetVector == null || mTargetVector . y == 0 ? SNAP_TO_ANY : mTargetVector . y > 0 ? SNAP_TO_END : SNAP_TO_START ; }
When scrolling towards a child view this method defines whether we should align the top or the bottom edge of the child with the parent RecyclerView .