public static View getCenterYChild ( RecyclerView recyclerView ) { int childCount = recyclerView . getChildCount ( ) ; for ( int i = 0 ; i < childCount ; i ++ ) { View child = recyclerView . getChildAt ( i ) ; if ( isChildInCenterY ( recyclerView , child ) ) { return child ; } } return null ; }
Get center child in Y Axes