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.
- Host: GitHub
- URL: https://github.com/codecraft26/multiple-view-holder-in-recyclerviewer
- Owner: codecraft26
- Created: 2022-04-14T19:54:19.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-15T18:08:35.000Z (about 4 years ago)
- Last Synced: 2025-07-04T15:14:03.544Z (11 months ago)
- Topics: kotlin, recyclerview-adapter
- Language: Kotlin
- Homepage:
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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