@ SuppressWarnings ( "unchecked" ) public void scrollToTop ( ) { if ( config . commandLogging ) { Log . d ( config . commandLoggingTag , "scrollToTop()" ) ; } View recyclerView = viewFetcher . getRecyclerView ( true , 0 ) ; if ( recyclerView != null ) { waiter . waitForViews ( true , AbsListView . class , ScrollView . class , WebView . class , recyclerView . getClass ( ) ) ; } else { waiter . waitForViews ( true , AbsListView . class , ScrollView . class , WebView . class ) ; } scroller . scroll ( Scroller . UP , true ) ; }
Scrolls to the top of the screen .