I want to use two adapters and a RecyclerView to achieve the following:
List header(first list)
List item 0
List item 1
Add new list item
List header(Second list)
List item 0
List item 2
List item 3
Add new list item
I have decided to go with the ComposedAdapter that includes my 2 adapters. My datasets for the adapters are at the Activity witch is where I also add new objects to the datasets(Lists).
Now, I am not sure how to handle item insertions. On what instance should I call notifyItemInserted() and with what position?
I want to use two adapters and a RecyclerView to achieve the following:
List header(first list)
List item 0 List item 1 Add new list item
List header(Second list)
List item 0 List item 2 List item 3 Add new list item
I have decided to go with the ComposedAdapter that includes my 2 adapters. My datasets for the adapters are at the Activity witch is where I also add new objects to the datasets(Lists).
Now, I am not sure how to handle item insertions. On what instance should I call notifyItemInserted() and with what position?