2

Possible Duplicate:
Android Endless List

I have a list. When it scrolls to the bottom of the list, it should automatically load more rows. For example, I have a list of 10 rows, we scroll to the bottom and it loads 10 more rows giving a total of 20. I have a footer row at the bottom. How can I detect when the footerrow is visible to the user?

Community
  • 1
  • 1
spentak
  • 4,627
  • 15
  • 62
  • 90
  • 3
    I think this is a repeat question [http://stackoverflow.com/questions/1080811/android-endless-list][1] [1]: http://stackoverflow.com/questions/1080811/android-endless-list – dten Aug 05 '11 at 16:30
  • how did you find that post? While writing my post I looked at all the suggested posts and that one was not on the list. – spentak Aug 05 '11 at 16:33
  • 1
    Google'd android detect bottom of list – dten Aug 05 '11 at 17:25

1 Answers1

3

Implement OnScrollListener and check to see if the footer is visible and load items accordingly.

Community
  • 1
  • 1
Gallal
  • 4,267
  • 6
  • 38
  • 61