Java android.widget RadioButton fields, constructors, methods, implement or subclass

Example usage for Java android.widget RadioButton fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.widget RadioButton.

The text is from its open source code.

Subclass

android.widget.RadioButton has subclasses.
Click this link to see all its subclasses.

Constructor

Method

booleanisChecked()
booleanperformClick()
voidsetButtonDrawable(@DrawableRes int resId)
Sets a drawable as the compound button image given its resource identifier.
voidsetButtonTintList(@Nullable ColorStateList tint)
Applies a tint to the button drawable.
voidsetChecked(boolean checked)

Changes the checked state of this button.

voidsetOnCheckedChangeListener(@Nullable OnCheckedChangeListener listener)
Register a callback to be invoked when the checked state of this button changes.
voidtoggle()

If the radio button is already checked, this method will not toggle the radio button.