Nested-RecyclerView | A simple horizontal recyclerView | RecyclerView library
kandi X-RAY | Nested-RecyclerView Summary
kandi X-RAY | Nested-RecyclerView Summary
A simple horizontal recyclerView inside vertical recyclerView
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Nested-RecyclerView
Nested-RecyclerView Key Features
Nested-RecyclerView Examples and Code Snippets
Community Discussions
Trending Discussions on Nested-RecyclerView
QUESTION
In my Android project I have a complex RecyclerView. The structure of my RecyclerView looks like the attached image.
In a few words, I have a main RecyclerView which contains a CardView, within the CardView I have another RecyclerView and each element can expand and collapse.
I have tried using a nested RecyclerView implementation (which is easy to find in Google by typing "Nested RecyclerView"), but this implementation has a bottleneck. When I call onBindViewHolder
it calls setAdapter
method and causes a bug when I scroll the RecyclerView.
Could you please give me any tips on how to implement such RecyclerView? What is the best way of building such Recycler adapters?
Here is an image how it looks like
Here is what I found about my way of implementing RecyclerView
...ANSWER
Answered 2020-Sep-07 at 12:14This can be easily done with Concat Adapter.
https://www.youtube.com/watch?v=n_mrrva_z
this is my Mockup app using Concat adapter.
Think of Concat Adpater as an arrayList. Its coded like ConcatAdapter(HeaderAdapter, Adapter2, HorizontalAdapter)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Nested-RecyclerView
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page