Answers for "how to use setoncheckedchangelistener in 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

Code answers related to "how to use setoncheckedchangelistener in kotlin"

Browse Popular Code Answers by Language