# Radio Buttons A `RadioButton` represents a button with two states, selected and unselected. Unlike checkboxes, changes in the states of one radio button can affect other buttons in the group. Specifically, selecting a `RadioButton` in a `RadioGroup` will de-select all other buttons in that group. A radio button is a circle which fills in with an inset when selected. ## Design & API Documentation - [Material Design guidelines: Radiobuttons](https://material.io/go/design-radio-buttons) - [Class definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/radiobutton/MaterialRadioButton.java) - [Class overview](https://developer.android.com/reference/android/widget/RadioButton) ## Usage The `MaterialRadioButton` widget provides a complete implementation of Material Design's radio button component. It is auto-inflated when using a non-Bridge Theme.MaterialComponents.\* theme which sets the MaterialComponentsViewInflater. Example code of how to include the widget in your layout: ```xml ``` ### Material Styles Using a Material Components theme with `MaterialRadioButton` will match the color of `RadioButton` views to your theme's palette. If you want to override this behavior, as you might with a custom drawable, set the `useMaterialThemeColors` parameter to false. ```xml ``` ### Styles Use `radioButtonStyle` for style changes. ```xml @style/Widget.MaterialComponents.CompoundButton.RadioButton ```