Answer the question
In order to leave comments, you need to log in
Is it ok to use a nested RecyclerView inside the items of another RecyclerView?
Or are there other ways to implement an unfolding detailed list when clicking on an element with totals?
Now there is a list+adapter+holder that displays a list with daily totals.
And a list + adapter + holder, which display a detailed list within a day. The second list is displayed in the RecyclerView, located as GONE in the layout of the first RecyclerView, loaded when the total is clicked and displayed.
Answer the question
In order to leave comments, you need to log in
I would make one RecyclerView. When pressed, I would change the list of data, and use DiffUtil. I would also write an animation of the appearance / hiding in the way I need. Recycler does all this and more.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question