Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You may use <a href="http://code.google.com/p/android-amazing-listview/" rel="nofollow noreferrer">Amazing ListView</a> to have auto-loading of next pages (i.e. "Loading..." on the last item).</p> <p><img src="https://i.stack.imgur.com/0r49a.png" alt="ListView with &quot;Loading...&quot; animation at the bottom"></p> <p>As per the documentation implement these methods:</p> <blockquote> <ul> <li><code>onNextPageRequested</code> Called when user scrolls the list until the "loading" indicator is visible. This is called on UI thread, so if you have some network requests, make sure you do it on the background. The page number is also given.</li> </ul> <p>By default, you are considered to be in the last page, and you will not see any "Loading..." message on the bottom of the list. You need to control whether there are still pages to be displayed.</p> <ul> <li><code>notifyMayHaveMorePages</code> to indicate that we still have more data, hence "Loading..." message will be shown.</li> <li><code>notifyNoMorePages</code> to indicate that we have loaded all the data, hence no more "Loading..." message to be shown.</li> <li><code>nextPage</code> to increase the page number. Do this when you append new data into your adapter.</li> <li><code>resetPage</code> to reset the page number to 1 (or to the value specified by <code>setInitialPage</code>).</li> </ul> </blockquote> <p>So what you need to do is fetch more data when <strong><code>onNextPageRequested</code></strong> is called. And call <strong><code>nextPage</code></strong> when you append new data into your adapter.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload