Search code examples
androidlistviewscrollfooter

how to check wether listview footer is scrolled in the screen


Having a ListView, and added a footer view to it.

getListView().addFooterView(footerView);

So this footer could be scrolled in and out. I'm wondering if there is simple way to check whether the footerView is scrolled in the screen's viewport. Any idea? Thanks!


Solution

  • You can call getLastVisiblePosition() on your listView. This position should include all headers and footers.