天天看點

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,如需轉載請自行聯系原作者

繼續閱讀