Firebase Recycler Pagination

FirebaseOpensource.com

Here is Android library to implement Pagination of Firebase Realtime Database in RecyclerView.

Sample App

The Sample app is available in app/ directory that demonstrates feature of this library. Step by step description is given here

Installation

FirebaseRecyclerPagingation Library binds Firebase Realtime Database Query to a RecyclerView by loading Data in pages. FirebaseRecyclerPagingAdapter is built on top of Android Paging Support Library. Before using this adapter in your app, you will have to implement dependency on the support library.

implementation 'android.arch.paging:runtime:1.x.x'

Gradle

Open Build.gradle of your project.

allprojects {
    repositories {
        google()
        jcenter()
    }
}

Open Build.gradle file of app module and then..

dependencies {
    //Android Paging Libray
    implementation "android.arch.paging:runtime:1.0.1"

    //Firebase Pagination Library
    implementation 'com.shreyaspatil:FirebaseRecyclerPagination:1.0.1'
}

Contribution

We'll love to make it happen. Let's make library more perfect, powerful and useful for everyone!