Is there a way to get the first visible View out of the ListView in Android?
I can get the data that backs the first View in the Adapter but it seems I can\'t get t
Object item = listView.getItemAtPosition(listView.getFirstVisiblePosition());
For first completely visible list item:
int pos = listView.getFirstVisiblePosition(); if (listView.getChildCount() > 1 && listView.getChildAt(0).getTop() < 0) pos++; Object item = listView.getItemAtPosition(pos);