前言

  本章内容是android.widget.CompoundButton.OnCheckedChangeListener,翻译来自德罗德,再次感谢德罗德 !期待你一起参与Android API 的中文翻译,联系我over140@gmail.com。

声明

  欢迎转载,但请保留文章原始出处:)

    博客园:http://www.cnblogs.com/

    Android中文翻译组:http://www.cnblogs.com/over140/

正文

  一、结构

    public static interface CompoundButton.OnCheckedChangeListener

  二、公共方法

public abstract void onCheckedChanged(CompoundButton buttonView, boolean isChecked)

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

参数

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

isChecked 按钮新的状态

结束

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

更多相关文章

  1. Android(安卓)关于ObjectAnimator 的几种状态
  2. Android(安卓)windowSoftInputMode属性
  3. ExpandableListView小图标替换
  4. android通过代码控制ListView上下滚动
  5. Android(安卓)主题切换
  6. Android中ListView包含CheckBox时滑动丢失选中状态的解决
  7. Android(安卓)permission 权限类及中英文说明
  8. Android中判断当前网络是否可用
  9. ADT Plugin for Eclipse(Android开发工具) 20.0.3 官方最新版

随机推荐

  1. Android greenDAO 3.2.2简单使用
  2. Android MVVM 探索
  3. android 设置设置中Region & Time Zone
  4. 自定义android模块不编译的问题
  5. Android得到视频缩略图
  6. android 通过 button 弹出 option menu
  7. Android Studio 使用NDK编译时常见的问题
  8. android 微信朋友分享,朋友圈分享
  9. Android全局主题样式控制,语言设置、主题
  10. 启动android默认浏览器