Search code examples
androidandroid-recyclerviewfitbit

How to add a dynamic view in between items of RecyclerView in android?


I need to add a small strip in between items of a RecyclerView. This strip can come after different number of items in a list. This needs to be done dynamically. I need to implement something like what FitBit has done:enter image description here

I also need the first row i.e. the one saying "This Week" to stick on top even if the page scrolls down.


Solution

  • Use StickyHeaderRecyclerView library

    It is very easy to use