how can i add additional items in recycleview?

  1. Create a generic list.
  2. add all your existing items to that list
  3. add your new item to the end of the list
  4. create two types of viewtype based on instances from generic list
  5. create two viewholders with different layouts
  6. then on oncreateviewholder method decide which view holder to attach based on view type.

May be refer this answer: https://stackoverflow.com/a/46454246/2404063

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top