@@ -92,7 +92,7 @@ private enum Direction {
92
92
private boolean mIsZooming ;
93
93
private Calendar mFirstVisibleDay ;
94
94
private Calendar mLastVisibleDay ;
95
- private boolean mshowFirstDayOfWeekFirst = false ;
95
+ private boolean mShowFirstDayOfWeekFirst = false ;
96
96
private int mDefaultEventColor ;
97
97
private int mMinimumFlingVelocity = 0 ;
98
98
private int mScaledTouchSlop = 0 ;
@@ -318,6 +318,7 @@ public WeekView(Context context, AttributeSet attrs, int defStyleAttr) {
318
318
mColumnGap = a .getDimensionPixelSize (R .styleable .WeekView_columnGap , mColumnGap );
319
319
mHeaderColumnTextColor = a .getColor (R .styleable .WeekView_headerColumnTextColor , mHeaderColumnTextColor );
320
320
mNumberOfVisibleDays = a .getInteger (R .styleable .WeekView_noOfVisibleDays , mNumberOfVisibleDays );
321
+ mShowFirstDayOfWeekFirst = a .getBoolean (R .styleable .WeekView_showFirstDayOfWeekFirst , mShowFirstDayOfWeekFirst );
321
322
mHeaderRowPadding = a .getDimensionPixelSize (R .styleable .WeekView_headerRowPadding , mHeaderRowPadding );
322
323
mHeaderRowBackgroundColor = a .getColor (R .styleable .WeekView_headerRowBackgroundColor , mHeaderRowBackgroundColor );
323
324
mDayBackgroundColor = a .getColor (R .styleable .WeekView_dayBackgroundColor , mDayBackgroundColor );
@@ -537,7 +538,7 @@ private void drawHeaderRowAndEvents(Canvas canvas) {
537
538
mIsFirstDraw = false ;
538
539
539
540
// If the week view is being drawn for the first time, then consider the first day of the week.
540
- if (mNumberOfVisibleDays >= 7 && today .get (Calendar .DAY_OF_WEEK ) != mFirstDayOfWeek && mshowFirstDayOfWeekFirst ) {
541
+ if (mNumberOfVisibleDays >= 7 && today .get (Calendar .DAY_OF_WEEK ) != mFirstDayOfWeek && mShowFirstDayOfWeekFirst ) {
541
542
int difference = (today .get (Calendar .DAY_OF_WEEK ) - mFirstDayOfWeek );
542
543
mCurrentOrigin .x += (mWidthPerDay + mColumnGap ) * difference ;
543
544
}
@@ -1341,11 +1342,11 @@ public void setFirstDayOfWeek(int firstDayOfWeek) {
1341
1342
}
1342
1343
1343
1344
public boolean isShowFirstDayOfWeekFirst () {
1344
- return mshowFirstDayOfWeekFirst ;
1345
+ return mShowFirstDayOfWeekFirst ;
1345
1346
}
1346
1347
1347
1348
public void setShowFirstDayOfWeekFirst (boolean show ) {
1348
- mshowFirstDayOfWeekFirst = show ;
1349
+ mShowFirstDayOfWeekFirst = show ;
1349
1350
}
1350
1351
1351
1352
public int getTextSize () {
0 commit comments