Chat like top scrolling with Pagination in Kotlin

In android application development RecyclerView is one of the most important thing . Recently I have worked on a chat application with Firebase where I have to implement chat messages top scrolling with pagination . Lets see how I have achieved this .

First we will know what is RecyclerView .

According to official android documentation “RecyclerView is…