private View getViewOnAbsListLine ( AbsListView absListView , int index , int lineIndex ) { final long endTime = SystemClock . uptimeMillis ( ) + Timeout . getSmallTimeout ( ) ; View view = absListView . getChildAt ( lineIndex ) ; while ( view == null ) { final boolean timedOut = SystemClock . uptimeMillis ( ) > endTime ; if ( timedOut ) { Assert . fail ( "View is null and can therefore not be clicked!" ) ; } sleeper . sleep ( ) ; absListView = ( AbsListView ) viewFetcher . getIdenticalView ( absListView ) ; if ( absListView == null ) { absListView = waiter . waitForAndGetView ( index , AbsListView . class ) ; } view = absListView . getChildAt ( lineIndex ) ; } return view ; }
Returns the view in the specified list line