We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
InnerPainter--->onDrawDisableDate(Canvas canvas, RectF rectF, LocalDate localDate)---> if(isBelongCurrentMonth(localDate)){ drawSolar(canvas, rectF, localDate, mAttrs.defaultUnCheckedSolarTextColor, mAttrs.disabledAlphaColor); drawLunar(canvas, rectF, localDate, mAttrs.defaultUnCheckedLunarTextColor, mAttrs.disabledAlphaColor); drawPoint(canvas, rectF, localDate, mDefaultUnCheckedPoint, mAttrs.disabledAlphaColor); drawHolidayWorkday(canvas, rectF, localDate, mAttrs.defaultUnCheckedHoliday, mAttrs.defaultUnCheckedWorkday, mAttrs.defaultUnCheckedHolidayTextColor, mAttrs.defaultUnCheckedWorkdayTextColor, mAttrs.disabledAlphaColor); drawStretchText(canvas, rectF, mAttrs.disabledAlphaColor, localDate); }
public boolean isBelongCurrentMonth(LocalDate dateToCheck){ // 获取当前日期的年份和月份 LocalDate currentDate = LocalDate.now(); int currentYear = currentDate.getYear(); int currentMonth = currentDate.getMonthOfYear();
int yearToCheck = dateToCheck.getYear(); int monthToCheck = dateToCheck.getMonthOfYear(); // 判断是否在当前月 if (currentYear == yearToCheck && currentMonth == monthToCheck) { return true; } else { return false; } }
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: