Code example for ToggleButton

Methods: setChecked, setOnCheckedChangeListener, setVisibility