Method to provide a callback when the checked state of a compound button changed in Android.
The onCheckedChanged
is a static
interface definition for a callback to be invoked when the checked state of a compound button (Checkbox
, RadioGroup
, etc.) changed:
onCheckedChanged(CompoundButton buttonView, boolean isChecked)
which has these parameters:
- buttonView: The compound button view whose state has changed.
- isChecked: The new checked state of buttonView.
The Reference: CompoundButton.OnCheckedChangeListener
A sample from the Documentation: RenderScriptIntrinsic (MainActivity class)
Tags related: android, android-checkbox