public void setDefaultColor(final int color) {
        if (this.defaultColor != color) {
            this.defaultColor = color;

            // 渐变后半部分
            customColors[2] = color;
            customColors[3] = color;

            // percent = 0
            emptyColors[0] = color;
            emptyColors[1] = color;

            invalidate();
        }
    }
public void setDefaultColor ( final int color ) { if ( this . defaultColor != color ) { this . defaultColor = color ; customColors [ 2 ] = color ; customColors [ 3 ] = color ; emptyColors [ 0 ] = color ; emptyColors [ 1 ] = color ; invalidate ( ) ; } }
@param color ColorInt