public static interface RadioContainer.CheckedStateChangedListener
For example, you can use this interface to select another radio button in the radio container, or deselect all radio buttons in the container.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onCheckedChanged(RadioContainer container,
int checkedId) |
Callback to process change events of a radio button container.
|
void onCheckedChanged(RadioContainer container, int checkedId)
When the state of a radio button in the group changes from deselected to selected or vice versa,
the value of checkedId indicates the ID of the selected radio button. If all radio buttons
are deselected, the value of checkedId is RadioContainer.INVALID_ID.
container - Indicates the radio button container where the state of a radio button changes.checkedId - Indicates the ID of the most recently selected radio button.