0

I am working on project, i want to make like following recyclerview if click on add icon recycler item add in added recyclerRecyclerView list view

Nivesh
  • 201
  • 1
  • 3
  • 13

1 Answers1

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
  • Thank you so much @Manish Kumar , you save time – Nivesh Jul 19 '16 at 09:14
  • Hey But this is Static type how to use dynamic like on click row – Nivesh Jul 19 '16 at 10:16
  • 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