Open silviahisham opened 9 years ago
try this
listView.getPullRootView().setOnScrollListener(new AbsListView.OnScrollListener() {
@Override
public void onScrollStateChanged(AbsListView view,
int scrollState) { // TODO Auto-generated method stub
}
@Override
public void onScroll(AbsListView view, int firstVisibleItem,
int visibleItemCount, int totalItemCount) {
int lastInScreen = firstVisibleItem + visibleItemCount;
if (lastInScreen == totalItemCount) {
System.out.println("the end");
} else {
}
}
});
where listView is the name of your listview
I need to set OnScrollListener for PullToZoomListViewEx to be able to endlessly scroll the list and get results.