@Override
    protected void onDraw(Canvas canvas) {
        canvas.drawCircle(getMeasuredWidth() / 2, getMeasuredHeight() / 2, size / 2, paint);
    }
Simple view to draw a colored and sized dot
library/src/main/java/com/github/badoualy/datepicker/DotView.java