Class RadioButton

All Implemented Interfaces:
Drawable.Callback, ViewTreeObserver.OnPreDrawListener, Checkable, Checkable2
Direct Known Subclasses:
MaterialRadioButton

public class RadioButton extends CompoundButton

A radio button is a two-states button that can be either checked or unchecked. When the radio button is unchecked, the user can press or click it to check it. However, contrary to a CheckBox or ToggleButton, a radio button cannot be unchecked by the user once checked.

Radio buttons are normally used together in a RadioGroup. When several radio buttons live inside a radio group, checking one radio button unchecks all the others.

For a radio button with only a custom icon, use CheckableImageButton.

See the Radio Buttons guide.