Extended recyclerview method

Asked 2 years ago, Updated 2 years ago, 104 views

I want to make the layout come out under the position every time I click each position in recyclerview and disappear when I click again, what should I do? Should I do it on click on the main page? I got json parsing from the main and spray it on the recycling view. When you press the position, the layout below is also json parsed and sprayed. Please help me

java android json recyclerview

2022-09-22 21:24

1 Answers

If you want to implement the expansion of View when you click on an item in Recyclerview, use the Expandable ListView built into Android, or refer to the following library to replace the RecyclerView you are currently using.

Alternatively, you can expand the Item view of the Recycler View using the library below.

Check if any of the above mentioned libraries can receive callbacks when the view is expanded (usually handled as callbacks) and apply the method of parsing and showing json when a callback is called.


2022-09-22 21:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.