Example usage for Java android.widget RadioGroup fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addView(View child) Adds a child view. |
void | addView(View child, int index) Adds a child view. |
void | check(@IdRes int id) Sets the selection to the radio button whose identifier is passed in parameter. |
void | clearCheck() Clears the selection. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
T | findViewById(@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. |
int | getCheckedRadioButtonId() Returns the identifier of the selected radio button in this group. |
View | getChildAt(int index) Returns the view at the specified position in the group. |
int | getChildCount() Returns the number of children in the group. |
Context | getContext() Returns the context the view is running in, through which it can access the current theme, resources, etc. |
int | getId() Returns this view's identifier. |
Object | getTag(int key) Returns the tag associated with this view and the specified key. |
Object | getTag() Returns this view's tag. |
int | indexOfChild(View child) Returns the position in the group of the specified child view. |
void | jumpDrawablesToCurrentState() |
void | removeAllViews() Call this method to remove all child views from the ViewGroup. |
void | setEnabled(boolean enabled) Set the enabled state of this view. |
void | setLayoutParams(ViewGroup.LayoutParams params) Set the layout parameters associated with this view. |
void | setOnCheckedChangeListener(OnCheckedChangeListener listener) Register a callback to be invoked when the checked radio button changes in this group. |
void | setOnClickListener(@Nullable OnClickListener l) Register a callback to be invoked when this view is clicked. |
void | setOrientation(@OrientationMode int orientation) Should the layout be a column or a row. |
void | setTag(int key, final Object tag) Sets a tag associated with this view and a key. |
void | setTag(final Object tag) Sets the tag associated with this view. |
void | setVisibility(@Visibility int visibility) Set the visibility state of this view. |