void bind(int year, int month, boolean selected, boolean beforeSelection) {
            this.year = year;
            this.month = month;

            String text = MONTHS[month];
            text = text.substring(0, Math.min(text.length(), 3)).toUpperCase(Locale.US);
            if (yearDigitCount > 0) {
                text += yearOnNewLine ? "\n" : " ";
                text += year % (int) Math.pow(10, yearDigitCount);
            }
            lbl.setText(text);
            int color = selected ? colorSelected : beforeSelection ? colorBeforeSelection : defaultColor;
            lbl.setTextColor(color);
            indicator.setColor(color);
            indicator.setCircleSizeDp(selected ? 12 : 5);
        }
Color when month is before the current selected month
library/src/main/java/com/github/badoualy/datepicker/MonthView.java