@@ -50,15 +50,19 @@ final class CalendarViewDelegate {
50
50
static final int WEEK_START_WITH_SAT = 7 ;
51
51
52
52
/**
53
- * 默认选择日期1号
53
+ * 默认选择日期1号first_day_of_month
54
54
*/
55
- static final int DEFAULT_MONTH_VIEW_SELECT_DAY = 0 ;
55
+ static final int FIRST_DAY_OF_MONTH = 0 ;
56
56
57
57
/**
58
- * 跟随上个月
58
+ * 跟随上个月last_select_day
59
59
*/
60
60
static final int LAST_MONTH_VIEW_SELECT_DAY = 1 ;
61
61
62
+ /**
63
+ * 跟随上个月last_select_day_ignore_current忽视今天
64
+ */
65
+ static final int LAST_MONTH_VIEW_SELECT_DAY_IGNORE_CURRENT = 2 ;
62
66
63
67
private int mDefaultCalendarSelectDay ;
64
68
@@ -416,7 +420,7 @@ final class CalendarViewDelegate {
416
420
mYearViewScrollable = array .getBoolean (R .styleable .CalendarView_year_view_scrollable , true );
417
421
418
422
mDefaultCalendarSelectDay = array .getInt (R .styleable .CalendarView_month_view_auto_select_day ,
419
- 1 );
423
+ FIRST_DAY_OF_MONTH );
420
424
421
425
mMonthViewShowMode = array .getInt (R .styleable .CalendarView_month_view_show_mode , MODE_ALL_MONTH );
422
426
mWeekStart = array .getInt (R .styleable .CalendarView_week_start_with , WEEK_START_WITH_SUN );
@@ -1075,11 +1079,13 @@ final List<Calendar> getSelectCalendarRange() {
1075
1079
calendar .setYear (date .get (java .util .Calendar .YEAR ));
1076
1080
calendar .setMonth (date .get (java .util .Calendar .MONTH ) + 1 );
1077
1081
calendar .setDay (date .get (java .util .Calendar .DAY_OF_MONTH ));
1082
+ LunarCalendar .setupLunarCalendar (calendar );
1083
+ updateCalendarScheme (calendar );
1078
1084
if (mCalendarInterceptListener != null &&
1079
1085
mCalendarInterceptListener .onCalendarIntercept (calendar )) {
1080
1086
continue ;
1081
1087
}
1082
- LunarCalendar . setupLunarCalendar ( calendar );
1088
+
1083
1089
calendars .add (calendar );
1084
1090
}
1085
1091
addSchemesFromMap (calendars );
0 commit comments