Code example for ToggleButton

Methods: setOnCheckedChangeListener