Code example for Switch

Methods: isChecked, setChecked, setOnCheckedChangeListener