public void setColor(@ColorInt int color) {
        paint.setColor(color);
        invalidate();
    }
Simple view to draw a colored and sized dot
library/src/main/java/com/github/badoualy/datepicker/DotView.java