public int color ( Context ctx ) { if ( mColorInt == 0 && mColorRes != - 1 ) { mColorInt = ContextCompat . getColor ( ctx , mColorRes ) ; } return mColorInt ; }
a small helper to get the color from the colorHolder