Code example for CheckBoxPreference

Methods: setEnabled, setChecked