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
I need to change first day of the week from Sunday to Monday. Where I can edit the code.
The text was updated successfully, but these errors were encountered:
It seems to be controlled by locale used which you can pass to the library:
Locale locale = new Locale("en", "GB"); CalendarPickerView calendarPickerView = view.findViewById(R.id.calendar_view); calendarPickerView.init(minDate, maxDate, locale) ...;
Or if you want to change the library, see CalendarPickerView.getMonthCells()
CalendarPickerView.getMonthCells()
List<List<MonthCellDescriptor>> getMonthCells(MonthDescriptor month, Calendar startCal) { Calendar cal = Calendar.getInstance(timeZone, locale); ... int firstDayOfWeek = cal.get(DAY_OF_WEEK); int offset = cal.getFirstDayOfWeek() - firstDayOfWeek; if (offset > 0) { offset -= 7; } ...
Sorry, something went wrong.
No branches or pull requests
I need to change first day of the week from Sunday to Monday. Where I can edit the code.
The text was updated successfully, but these errors were encountered: