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
Indeed listView.getChildAt(listView.getFirstVisiblePosition()) gives the first visible item, BUT it could be half visible list item.
listView.getChildAt(listView.getFirstVisiblePosition())
To get first completely visible list item,
if (listView.getChildAt(0).getTop() < 0) { int firstCompletelyVisiblePos = listView.getFirstVisiblePosition() + 1; }