public void applyTo ( Context ctx , GradientDrawable drawable ) { if ( mColorInt != 0 ) { drawable . setColor ( mColorInt ) ; } else if ( mColorRes != - 1 ) { drawable . setColor ( ContextCompat . getColor ( ctx , mColorRes ) ) ; } }
set the textColor of the ColorHolder to an drawable