The solution is to compare the height of the ListView at the bottom of the footer.
public void onScroll(AbsListView arg0, int arg1, int arg2, int arg3) { if(arg1 + arg2 == arg3)
In the interest of others, the footer is basically a View , which I added to the ListView via addFooterView . R.layout.footer is the layout for the footer. The following is a sample code of how I initialized the footer and added it to the ListView :
View footer; //This is a global variable. .... //Inside onCreate or any method where you initialize your layouts footer = getLayoutInflater().inflate(R.layout.footer, null); listView.addFooterView(footer);
source share