Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SetChecked() does not work

Hey guys on my Adapter ViewHolder.bind I have to check if some value is true, then check my checkbox. The problem is I cant use setCheck(tru) cause in kotlin doesnt apear.

like image 422
Aris Guimerá Avatar asked Sep 18 '25 22:09

Aris Guimerá


1 Answers

Try this

To check the Checkbox use do this

 holder.checkBox!!.isChecked=true

And to uncheck Checkbox do this

  holder.checkBox!!.isChecked=false
like image 78
Quick learner Avatar answered Sep 20 '25 11:09

Quick learner