How to program to repaint every second item in recyclerview to a different color? (LinearLayout)

后端 未结 0 842
心在旅途
心在旅途 2021-01-31 03:46

My RecyclerView is having some elements in it. Every second element should be painted in a different color. This is my function.

val BackgroundElemnt: LinearLayou         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题