private View findFirstVisibleChildClosestToEnd ( boolean completelyVisible , boolean acceptPartiallyVisible ) { if ( mShouldReverseLayout ) { return findOneVisibleChild ( 0 , getChildCount ( ) , completelyVisible , acceptPartiallyVisible ) ; } else { return findOneVisibleChild ( getChildCount ( ) - 1 , - 1 , completelyVisible , acceptPartiallyVisible ) ; } }
Convenience method to find the visible child closes to end . Caller should check if it has enough children .