Search code examples
androidfirebaseandroid-recyclerviewfirebaseui

Firebaserecycleadapter, what is the difference with "normal" recycleradapter? (android)


I have looked on the internet and I haven't find any answers.

What is the real difference between using a firebaserecycleadapter and a normal recycleradapter ?

I mean, will the Firebaserecycleradapter ONLY load data from database for what is visible on the screen? So is it some kind of a infinite scroll that only loads data if the users scroll the screen ?

I only use "normal" recycleradapter and it works perfectly. Only problem is that it loads all the data from the serveur at once.


Solution

  • If you don't use FirebaseRecyclerAdapter, then you need to create your own custom adapter that can work with firebase database.

    That's why the library FirebaseUI was created to make it easier to bind your data with the UI.

    Also FirebaseRecyclerAdapter updates your data in real-time.