public void | drawMonthDay(android.graphics.Canvas canvas, int year, int month, int day, int x, int y, int startX, int stopX, int startY, int stopY)
if (mSelectedDay == day) {
canvas.drawCircle(x , y - (MINI_DAY_NUMBER_TEXT_SIZE / 3), DAY_SELECTED_CIRCLE_SIZE,
mSelectedCirclePaint);
}
// If we have a mindate or maxdate, gray out the day number if it's outside the range.
if (isOutOfRange(year, month, day)) {
mMonthNumPaint.setColor(mDisabledDayTextColor);
} else if (mHasToday && mToday == day) {
mMonthNumPaint.setColor(mTodayNumberColor);
} else {
mMonthNumPaint.setColor(mDayTextColor);
}
canvas.drawText(String.format("%d", day), x, y, mMonthNumPaint);
|