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
hello by default we can select one or more days, how can i limit to a single day ? thanks
The text was updated successfully, but these errors were encountered:
use this piece of code : calendarView.setSelectionType(SelectionType.SINGLE);
calendarView.setSelectionType(SelectionType.SINGLE);
Sorry, something went wrong.
To handle single Click
calendarView.selectionManager = SingleSelectionManager(OnDaySelectedListener { Log.e(" CALENDAR ", "========== setSelectionManager =========="); Log.e(" CALENDAR ", "Selected Dates : " + calendarView.selectedDates.size); if (calendarView.selectedDates.size <= 0) return@OnDaySelectedListener; val spf = SimpleDateFormat("dd-MM-yyyy", Locale.ENGLISH) reservationTime = spf.format(calendarView.selectedDays[0].calendar.time) // Log.e(" CALENDAR ", "Departure : DD MMM YYYY : " + formatDateToString(calendarView.getSelectedDays().get(0).getCalendar().getTime(), "dd MMM yyyy", "")); // Log.e(" CALENDAR ", " Return : DD MMM YYYY : " + formatDateToString(calendarView.getSelectedDays().get(calendarView.getSelectedDates().size() - 1).getCalendar().getTime(), "dd MMM yyyy", ""));
})
No branches or pull requests
hello
by default we can select one or more days, how can i limit to a single day ?
thanks
The text was updated successfully, but these errors were encountered: