airbnb / epoxy

Epoxy is an Android library for building complex screens in a RecyclerView
https://goo.gl/eIK82p
Apache License 2.0
8.49k stars 733 forks source link

Nested RecyclerView with Epoxy #1194

Open vgritsko opened 3 years ago

vgritsko commented 3 years ago

Hi there! Does anybody know or have examples how create nested RecyclerView?

dmytroivanovv commented 3 years ago

Actually, it depends on what kind of orientation your nested recycler view would have. I do not recommend creating an inner recycler view with vertical orientation while your parent is vertical too. If you need horizontal, you can use carousel as mentioned in docs (https://github.com/airbnb/epoxy/wiki/Carousel)

nelsonwija commented 3 years ago

Actually, it depends on what kind of orientation your nested recycler view would have. I do not recommend creating an inner recycler view with vertical orientation while your parent is vertical too. If you need horizontal, you can use carousel as mentioned in docs (https://github.com/airbnb/epoxy/wiki/Carousel)

Whats wrong with having vertical orientation recyclerview inside a vertical recycler view parent ?

sjdev1802 commented 2 years ago

All items you are trying to put in nested vertical recycler view can be the part of parent recycler view only. Why to increase the complexity?

imagineDev commented 2 years ago

I have an usecase where I have Linearly aligned items in my parent recycler view, but it also has a Card Section and inside that card I want to have list of items (dynamic). How to add items inside that card?

DawnNguyenAhiho commented 6 months ago

Hi I have the same question, too. My case is I have an epoxy recycler view. Inside it, I want to have a sticky header, so that I have to set StickyHeaderLinearLayoutManager for the layoutManager. Then the main content is a gridview with spanCount is 2. I'm searching how can I implement that layout with epoxy