Most visited

Recently visited

Added in API level 1

RadioGroup.OnCheckedChangeListener

public static interface RadioGroup.OnCheckedChangeListener

android.widget.RadioGroup.OnCheckedChangeListener


在此组中选中的单选按钮发生变化时要调用回调的接口定义。

Summary

Public methods

abstract void onCheckedChanged(RadioGroup group, int checkedId)

当选中的单选按钮发生变化时调用。

Public methods

onCheckedChanged

Added in API level 1
void onCheckedChanged (RadioGroup group, 
                int checkedId)

当选中的单选按钮发生变化时调用。 当选择被清除时,checkedId为-1。

Parameters
group RadioGroup: the group in which the checked radio button has changed
checkedId int: the unique identifier of the newly checked radio button

Hooray!