int index = listView.getFirstVisiblePosition(); get
View v = listView.getChildAt(0); it
int top = (v == null) ? 0 : v.getTop(); io
listView.setSelectionFromTop(index, top); top