Code example for CompoundButton

Methods: isChecked, setOnCheckedChangeListener