I have a ListActivity which queries a web service for data. I’ve implemented a paging system with the web service so only 25 rows get returned at a time.
I’d like my ListActivity to work like so: When the user scrolls to the bottom of the list, the ListActivity will query the web service for the next page of data.
How can I tell if the user has scrolled to the bottom of the list?
The way I approached it with
EndlessAdapteris to have a placeholderView— typically showing some sort of “Loading” indicator — that triggers the next data fetch.There are other strategies, though I do not remember the details off the top o’ my head.