Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. @Override
  2. public void onScroll(AbsListView absListView, int first, int visible, int total) {
  3.     if (!isLoading && total < totalItemsInYourList) {
  4.         if (first + visible >= total - 1) {
  5.             loadNextPage();
  6.         }
  7.     }
  8. }
  9.  
  10. // isLoading is a boolean that flags whether you're loading more data
  11. // totalItemsInYourList is... the total number of items in your list
  12. // loadNextPage() loads more data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement