I am making a sample android app which shows all data present inside Firebase Database with the help of RecyclerView. It is working as I expected. Issue Is If I add More Items In Database As Time Passes. It would still get all data and show in recyclerView. It would be definitely slow (Due to internet and slow performance Of Devices) and would take some time to show data on recyclerView.
I heard of a way to resolve this by making them small chunks and loading another one when user scrolls further. This Process is known as pagination. But In case Of Firebase Database, there is no direct way to paginate data in recyclerView. I have also searched for this issue on internet but none of them work.
Has anyone idea how to paginate firebase database data in recyclerView?.