epoxy icon indicating copy to clipboard operation
epoxy copied to clipboard

Nested RecyclerView with Epoxy

Open vgritsko opened this issue 3 years ago • 5 comments

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

vgritsko avatar Jun 02 '21 10:06 vgritsko

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)

dmytroivanovv avatar Jun 04 '21 20:06 dmytroivanovv

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 ?

nelsonwija avatar Jul 25 '21 08:07 nelsonwija

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?

sjdev1802 avatar Dec 07 '21 01:12 sjdev1802

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?

imagineDev avatar Jan 14 '22 06:01 imagineDev

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

DawnNguyenAhiho avatar Mar 08 '24 10:03 DawnNguyenAhiho