天天看点

Android 中文 API (30) —— CompoundButton.OnCheckedChangeListener

正文

  一、结构

    public static interface CompoundButton.OnCheckedChangeListener

  二、公共方法

         public abstract void onCheckedChanged(CompoundButton buttonView, boolean isChecked)

         在按钮选中状态发生改变时被调用

                   参数

                            buttonView     选中状态发生改变的那个按钮

                            isChecked        按钮新的状态

结束

  本章为CompoundButton的内部接口,内容较少,示例请参考CompoundButton的三个子类。

本文转自over140 51CTO博客,原文链接:http://blog.51cto.com/over140/582645,如需转载请自行联系原作者

继续阅读