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
Hi,
How can we update the list of adapter ?
val calendarView : AgendaCalendarView = view.findViewById(R.id.agenda_calendar_view) adapter = AgendaAdapter(this.requireContext()) contentManager = CalendarContentManager(this, calendarView, adapter) contentManager.setDateRange(minDate, maxDate) contentManager.locale = Locale.FRENCH
viewModel.interventionsListOfUser.observe(viewLifecycleOwner) { intervention -> eventList.clear() intervention.forEach { inter -> val dayStart = Calendar.getInstance() dayStart.time = Date(inter.startAt!!) val dayEnd = Calendar.getInstance() dayEnd.time = Date(inter.finishAt!!) val dayItem = DayItem.buildDayItemFromCal(dayStart) eventList.add(AgendaEvent(dayStart, dayEnd, dayItem, inter)) } }
The text was updated successfully, but these errors were encountered:
Ok, i think my problem is resolved : https://github.com/ognev-zair/Kotlin-AgendaCalendarView/pulls I have duplcation of my values when i rotated the screen. Please accept the pull request. Thanks
Sorry, something went wrong.
No branches or pull requests
Hi,
How can we update the list of adapter ?
val calendarView : AgendaCalendarView = view.findViewById(R.id.agenda_calendar_view)
adapter = AgendaAdapter(this.requireContext())
contentManager = CalendarContentManager(this, calendarView, adapter)
contentManager.setDateRange(minDate, maxDate)
contentManager.locale = Locale.FRENCH
The text was updated successfully, but these errors were encountered: