An open API service indexing awesome lists of open source software.

https://github.com/codecraft26/multiple-view-holder-in-recyclerviewer

Here our goal is prepare a RecyclerView Adapter to accept different type of data and represent them into view according to there data model With the help of Kotlin, it becomes easy to resolve this problem.
https://github.com/codecraft26/multiple-view-holder-in-recyclerviewer

kotlin recyclerview-adapter

Last synced: 11 months ago
JSON representation

Here our goal is prepare a RecyclerView Adapter to accept different type of data and represent them into view according to there data model With the help of Kotlin, it becomes easy to resolve this problem.

Awesome Lists containing this project

README

          

# mutiple view holder in one recycler view

In the imperative programming paradigm in Android, a RecyclerView is a widget used to display scrollable items. Normally, developers use a single type of item to populate data in the RecyclerView.

Have you ever asked yourself how you can employ different types of data items in the same RecyclerView while maintaining a seamless experience?

This is where multiple ViewHolders come in. They allow us to pass different data objects during the RecyclerView callbacks. This way we can create more interactive and scalable applications.## Screen grab

https://user-images.githubusercontent.com/75511608/163605624-342b4c0d-9834-4291-97ee-26aaf35d492c.mp4