static ColorStateList bootstrapButtonText ( Context context , boolean outline , BootstrapBrand brand ) { int defaultColor = outline ? brand . defaultFill ( context ) : brand . defaultTextColor ( context ) ; int activeColor = outline ? ColorUtils . resolveColor ( android . R . color . white , context ) : brand . activeTextColor ( context ) ; int disabledColor = outline ? brand . disabledFill ( context ) : brand . disabledTextColor ( context ) ; if ( outline && brand instanceof DefaultBootstrapBrand ) { // special case DefaultBootstrapBrand db = ( DefaultBootstrapBrand ) brand ; if ( db == DefaultBootstrapBrand . SECONDARY ) { defaultColor = ColorUtils . resolveColor ( R . color . bootstrap_brand_secondary_border , context ) ; disabledColor = defaultColor ; } } return new ColorStateList ( getStateList ( ) , getColorList ( defaultColor , activeColor , disabledColor ) ) ; }
Generates a colorstatelist for a bootstrap button