0

I know this topic has been 'touched' alot of times, but I still haven't found the correct way of implementing recyclerview/s inside recyclerview.

My goal is to have a single vertical recyclerview as parent and multiple horizontal recyclerviews inside of it.

enter image description here

I found an implementation to this within this post answer: How do I layout nested RecyclerViews, while remaining performant?

What it suggests is, inside parent recyclerview onBindVH() method call holder.setAdapter(childAdapter). Is this correct way? I think, this is not the best solution performance wise. Is there better solution to implement nested recyclerviews (explanations are welcome)?

MaaAn13
  • 264
  • 5
  • 24
  • 54
  • try this.. https://github.com/luizgrp/SectionedRecyclerViewAdapter many things are handled performance wise.. its a sectioned recyclerview so set the child adapter horizontal layout manager... – Santanu Sur Feb 19 '18 at 09:46
  • https://android.jlelse.eu/easy-handling-of-lists-rendererrecyclerviewadapter-part-2-3b18c8ea6f1b and https://medium.com/@mgn524/optimizing-nested-recyclerview-a9b7830a4ba7 – Aswin P Ashok Feb 19 '18 at 09:47
  • I managed to cache views, but still, first drawing is slow and stutters alot. – MaaAn13 Feb 21 '18 at 15:22

0 Answers0