更新时间:2022-07-18 10:35:23
一、结构
public static interface CompoundButton.OnCheckedChangeListener
二、公共方法
public abstract void onCheckedChanged(CompoundButton buttonView, boolean isChecked)
在按钮选中状态发生改变时被调用
参数
buttonView 选中状态发生改变的那个按钮
isChecked 按钮新的状态
本文转自博客园农民伯伯的博客,原文链接:Android 中文 API (30) —— CompoundButton.OnCheckedChangeListener,如需转载请自行联系原博主。