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

前言android

  本章內容是android.widget.CompoundButton.OnCheckedChangeListener,翻譯來自德羅德,再次感謝德羅德 !期待你一塊兒參與Android API 的中文翻譯,聯繫我over140@gmail.com。
 ide

 

聲明spa

  歡迎轉載,但請保留文章原始出處:)
 翻譯

    農民伯伯:http://over140.blog.51cto.com/blog

    Android中文翻譯組:http://www.cnblogs.com/over140/  接口

 

正文get

  1、結構it

    public static interface CompoundButton.OnCheckedChangeListenerclass

 

  2、公共方法
 List

 

         public abstract void onCheckedChanged(CompoundButton buttonView, boolean isChecked)

         在按鈕選中狀態發生改變時被調用

                   參數

                            buttonView     選中狀態發生改變的那個按鈕

                            isChecked        按鈕新的狀態

 

 

結束
 

  本章爲CompoundButton的內部接口,內容較少,示例請參考CompoundButton的三個子類。  

相關文章
相關標籤/搜索