Answers for "setoncheckedchangelistener kotlin"

0

setoncheckedchangelistener kotlin

Use CheckBox.OnCheckedChangeListener like:

checkBox.setOnCheckedChangeListener { buttonView, isChecked ->
  Toast.makeText(this,isChecked.toString(),Toast.LENGTH_SHORT).show()
}
where checkBox is CheckBox ID.
Posted by: Guest on March-13-2021

Browse Popular Code Answers by Language