Android RecyclerView adding pagination

前端 未结 3 953
孤独总比滥情好
孤独总比滥情好 2021-01-06 10:33

I created a RecyclerView for my application and trying to find a way to stop huge requests, I want to get the results 10 by 10 with a progress bar. My server will send the r

3条回答
  •  孤独总比滥情好
    2021-01-06 10:58

    https://github.com/kunal-mahajan/PaginationAdeptor

    I have implemented the pagination component / widget and that is very simple to implement. No xml is required only need to extend the class. Example is available in above url with timer task and dummy data. In main activity you may change the number of data available for testing purpose in "final int totalRecords"; If there is any issue will answer your queries. Thanks Kunal

提交回复
热议问题