I have a RecyclerView with a PagedListAdapter which is used to show a list of text(such as 0,1,2,...,99), and there is a button to add 20 more items to database such that the list of text becomes (0,1,2,...,99,...,119).
With page size equals to 20, the list can load 20 items page to page (where datasource.loadAfter() is triggered) when scrolling the list.
When the list hasn't scrolled to bottom and I click the button, new items are added, and scrolled down to bottom, datasource.loadAfter() is triggered, new items are displayed.
However, when the list has reached bottom and I click the button, new items are added to database but datasource.loadAfter() is not triggered, and those new items are not shown on display.
What can I do to make new items shown when the list already reached bottom?
As I have posted codes in other question, so I just post the link here: The code I used