package Ġcom . p unto gr is . multi player . utils Ċ Ċ import Ġandroid . content . res . Color State List Ċ import Ġandroid . widget . Button Ċ import Ġandroidx . core . content . res . Resources Compat Ċ import Ġandroidx . databinding . Binding Adapter Ċ import Ġcom . p unto gr is . multi player . R Ċ Ċ @ Binding Adapter (" search Button State ") Ċ fun ĠButton . set Search Button State ( is Searching : ĠBoolean ){ ĊĠĠĠ Ġif Ġ( is Searching ){ ĊĠĠĠĠĠĠĠ Ġset Text ( R . string . cancel _ search ) ĊĠĠĠĠĠĠĠ Ġbackground Tint List Ġ= ĠColor State List . valueOf ( Resources Compat . getColor ( resources , Ġcom . p unto gr is . are you ar obot . R . color . color Primary , Ġnull )) ĊĠĠĠ Ġ} else { ĊĠĠĠĠĠĠĠ Ġset Text ( R . string . search _ opp onent ) ĊĠĠĠĠĠĠĠ Ġbackground Tint List Ġ= ĠColor State List . valueOf ( Resources Compat . getColor ( resources , Ġcom . p unto gr is . are you ar obot . R . color . color Accent , Ġnull )) ĊĠĠĠ Ġ} Ċ }