2

How can I implement a custom Item decore for recycler view with grid layout manager. I am using a recycler view with grid layout manager.

I want to implement the item decore like this,

enter image description here

found these results from stackoverflow, but want to implement custom Decorating RecyclerView (with GridLayoutManager) to display divider between items

hasan_shaikh
  • 1,434
  • 1
  • 15
  • 38

1 Answers1

1

You could add item decoration, each time when callback fires you could check item position and draw what you want. Doc link.

Dmytro Ivanov
  • 1,260
  • 1
  • 8
  • 10