MaterialRadioButton

A class that creates a Material Themed RadioButton.

This class uses attributes from the Material Theme to style a RadioButton. Excepting color changes, it behaves identically to AppCompatRadioButton. Your theme's ?attr/colorControlActivated, ?attr/colorSurface, and ?attr/colorOnSurface must be set.

For more information, see the component developer guidance and design guidelines.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int)

Functions

Link copied to clipboard
Returns true if this MaterialRadioButton defaults to colors from a Material Theme.
Link copied to clipboard
open fun setUseMaterialThemeColors(useMaterialThemeColors: Boolean)
Forces the MaterialRadioButton to use colors from a Material Theme.