public void setColorRes(@ColorRes int colorRes) {
        setColor(ContextCompat.getColor(getContext(), colorRes));
    }
Simple view to draw a colored and sized dot
library/src/main/java/com/github/badoualy/datepicker/DotView.java