question: public boolean isEnabled ( int buttonId ) { View button ; try { button = getButtonOrError ( buttonId ) ; } catch ( IllegalArgumentException e ) { button = getImageButtonOrError ( buttonId ) ; } Integer enabledId = ( Integer ) button . getTag ( R . string . tag_enabled_id ) ; if ( enabledId != null ) { return ( enabledId . intValue ( ) == buttonId ) && button . isEnabled ( ) ; } else { return false ; } }
target:  Check if a button is enabled with the given button id..