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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

Method

voidaddView(View child)

Adds a child view.

voidaddView(View child, int index)
Adds a child view.
voidcheck(@IdRes int id)

Sets the selection to the radio button whose identifier is passed in parameter.

voidclearCheck()

Clears the selection.

booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
TfindViewById(@IdRes int id)
Finds the first descendant view with the given ID, the view itself if the ID matches #getId() , or null if the ID is invalid (< 0) or there is no matching view in the hierarchy.
intgetCheckedRadioButtonId()

Returns the identifier of the selected radio button in this group.

ViewgetChildAt(int index)
Returns the view at the specified position in the group.
intgetChildCount()
Returns the number of children in the group.
ContextgetContext()
Returns the context the view is running in, through which it can access the current theme, resources, etc.
intgetId()
Returns this view's identifier.
ObjectgetTag(int key)
Returns the tag associated with this view and the specified key.
ObjectgetTag()
Returns this view's tag.
intindexOfChild(View child)
Returns the position in the group of the specified child view.
voidjumpDrawablesToCurrentState()
voidremoveAllViews()
Call this method to remove all child views from the ViewGroup.
voidsetEnabled(boolean enabled)
Set the enabled state of this view.
voidsetLayoutParams(ViewGroup.LayoutParams params)
Set the layout parameters associated with this view.
voidsetOnCheckedChangeListener(OnCheckedChangeListener listener)

Register a callback to be invoked when the checked radio button changes in this group.

voidsetOnClickListener(@Nullable OnClickListener l)
Register a callback to be invoked when this view is clicked.
voidsetOrientation(@OrientationMode int orientation)
Should the layout be a column or a row.
voidsetTag(int key, final Object tag)
Sets a tag associated with this view and a key.
voidsetTag(final Object tag)
Sets the tag associated with this view.
voidsetVisibility(@Visibility int visibility)
Set the visibility state of this view.