Home » Android » java – Firebase recycler adapter pagination

java – Firebase recycler adapter pagination

Posted by: admin May 14, 2020 Leave a comment

Questions:
mFirebaseAdapter = new FirebaseRecyclerAdapter<Restaurant, FirebaseRestaurantViewHolder>
            (Restaurant.class, R.layout.restaurant_list_item, FirebaseRestaurantViewHolder.class, 
                mRestaurantReference)

I had like 1000 elements/objects in mRestaurantReference. I will definitely get performance issues if I use the above code so I have to paginate it. So how can I paginate data using FirebaseRecyclerAdapter?

How to&Answers: