Code example for AbsListView

Methods: setSelection

0
        private void scrollToLine(final int line)
        { 
            instrumentation.runOnMainSync(new Runnable() {
                public void run() 
                { 
                    ((AbsListView) view).setSelection(line);
                } 
            }); 
        } 
    } 
}