A
A
Alexander Sinitsyn2018-07-17 13:25:13
Android
Alexander Sinitsyn, 2018-07-17 13:25:13

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

1 answer(s)
D
Denis Zagaevsky, 2018-07-17
@a_u_sinitsin

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 question

Ask a Question

731 491 924 answers to any question