FileDocCategorySizeDatePackage
SimpleMonthView.javaAPI DocAndroid 5.1 API1697Thu Mar 12 22:22:50 GMT 2015com.android.datetimepicker.date

SimpleMonthView

public class SimpleMonthView extends MonthView

Fields Summary
Constructors Summary
public SimpleMonthView(android.content.Context context)

        super(context);
    
Methods Summary
public voiddrawMonthDay(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);