public void setNewCenterColor ( int color ) { mCenterNewColor = color ; mCenterNewPaint . setColor ( color ) ; if ( mCenterOldColor == 0 ) { mCenterOldColor = color ; mCenterOldPaint . setColor ( color ) ; } if ( onColorChangedListener != null && color != oldChangedListenerColor ) { onColorChangedListener . onColorChanged ( color ) ; oldChangedListenerColor = color ; } invalidate ( ) ; }
Change the color of the center which indicates the new color .