Endless scrolling ListView
问题 I am populating a ListView with data fetched from an online service, which provides the data in pages. Rather than providing a 'next page' button, I am attempting to automatically load the next page of data when the user scrolls near the bottom of the page. Data is fetched using an AsyncTask: class RecentTracksTask extends AsyncTask<Integer, Void, Void> { ArrayList<Track> recentTracks; @Override protected Void doInBackground(Integer... page) { try { // Get a page of 15 tracks // Simplified -