I am working on project, i want to make like following recyclerview if click on add icon recycler item add in added recycler
Asked
Active
Viewed 437 times
0

Nivesh
- 201
- 1
- 3
- 13
-
I have created a sample few days back illustrating how to use nested recycler view. Please have a look at this repository:https://github.com/sagartrehan/NestedRecyclerSample – Sagar Trehan Jul 19 '16 at 08:18
-
Thanks @SagarTrehan , is it helpful for me? – Nivesh Jul 19 '16 at 08:20
-
Yes you can checkout and run the app. It's simple to understand. Let me know if any issue – Sagar Trehan Jul 19 '16 at 08:35
1 Answers
0
In your case, there is no need to make two recyclerview. Just create single recyclerview with headers for different sections. You can get hint from here https://stackoverflow.com/a/33769698/1690391. Now, when you click on add/remove icon then just change the "itemType" and invalidate your adapter.

Community
- 1
- 1

Manish Kumar
- 1,095
- 9
- 19
-
-
-
when i click on add/remove icon then How can i change the "itemType" and invalidate adapter ? – Nivesh Jul 19 '16 at 11:36
-
Sorry for late reply. For your question "How can i change the "itemType" and invalidate adapter ?", i prefer you take a look here: http://stackoverflow.com/questions/26245139/how-to-create-recyclerview-with-multiple-view-type. Let me know if you need any more clarification,. – Manish Kumar Aug 08 '16 at 12:12