package Ġ rio . ar j . dashboard Ċ Ċ import Ġandroidx . annotation . Color Res Ċ import Ġandroidx . core . content . Context Compat Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġ rio . ar j . dashboard . databinding . Item Next League Binding Ċ import Ġ rio . ar j . info ot ball . data . repository . next league . model . Events Ċ Ċ class ĠNext League ViewHolder ( private Ġval Ġbinding : ĠItem Next League Binding ) Ġ: ĊĠ ĠRecyclerView . ViewHolder ( binding . root ) Ġ{ ĊĊĠ Ġfun Ġbind ( event Model : ĠEvents ) Ġ{ ĊĠĠĠ Ġbinding . event Model Ġ= Ġevent Model ĊĊĠĠĠ Ġif Ġ( adapter Position Ġ% Ġ 2 Ġ== Ġ 0 ) Ġ{ ĊĠĠĠĠĠ Ġset BackgroundColor ( R . color . gray _ A 6 A 6 A 6 ) ĊĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠ Ġset BackgroundColor ( R . color . white _ FFFFFF ) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġprivate Ġfun Ġset BackgroundColor (@ Color Res Ġcolor : ĠInt ) Ġ= Ġbinding . container Root . set BackgroundColor ( ĊĠĠĠ ĠContext Compat . getColor ( binding . root . context , Ġcolor ) ĊĠ Ġ) Ċ Ċ } Ċ