public void setCheckedImmediately ( boolean checked ) { if ( getButtonDrawable ( ) instanceof CheckBoxDrawable ) { CheckBoxDrawable drawable = ( CheckBoxDrawable ) getButtonDrawable ( ) ; drawable . setAnimEnable ( false ) ; setChecked ( checked ) ; drawable . setAnimEnable ( true ) ; } else setChecked ( checked ) ; }
Change the checked state of this button immediately without showing animation .