https://kotlinlang.org logo
#android
Title
# android
i

iex

05/29/2020, 8:04 AM
Hi! Any recommendations re: nesting a vertical (variable length, short) text items list inside recycler view cells? I usually put everything in a flat list, using different cell types, but this can be visually not optimal if you want to show something that spans multiple "child" cells. Or just filling programmatically nested linear layouts? But this doesn't seem to play along well with recycling, since the parent cells have to remove and re-add the rows all the time. Or nested recycler view (this may be overkill, and does a nested recycler view even perform well)?
e

Eric Ampire [MOD]

05/29/2020, 8:46 AM
Hi have recently wrote an article about that
“Nested RecyclerView and DataBinding” https://link.medium.com/sHEk1TmwS6
i

iex

06/04/2020, 7:44 AM
thanks! The question is rather about whether it's worth it (in my particular case it was not), but will give it a read