问题
Is there a tutorial/example to include a load more button with recyclerview? I need to add a button after displaying 8 elements in the recyclerview. The user can click this button to load the next 8 contents.
回答1:
Add a footer view to your recyclerview which includes Load More button. When clicking the button, make a request for next 8 items. After loading items, notify the adapter.
RecyclerView header and footer
回答2:
what you need is endless recycler view ,which will load the data while scrolling . Here I have attached link for that implementation.
Follow this link
来源:https://stackoverflow.com/questions/30313209/android-recyclerview-load-more-button