2014年3月19日

摘要: 对于CheckBox的事件监听很多朋友可能会首先想到使用CompoundButton的内部接口OnCheckedChangeListener,首先我们来看CompoundButton控件,它继承与Button,此种Button包含两个状态:选中与被选中(此Button被点击时状态会随之改变),CompoundButton包含四个子类:CheckBox,RadioButton,Sswitch,ToggleButton它们都是用于状态切换的控件。对于它们的事件监听使用CompoundButton的内部接口CompoundButton.OnCheckedChangeListener符合标准要求。但是 阅读全文
posted @ 2014-03-19 16:48 cnblogs_android 阅读(4229) 评论(0) 推荐(0) 编辑

导航