kizitonwose / Calendar

A highly customizable calendar view and compose library for Android.
MIT License
4.5k stars 492 forks source link

Don't want to show extra adjusted start and end dates in WeekCalender #533

Closed rafiul587 closed 4 months ago

rafiul587 commented 4 months ago

Library information:

Question:

I need to show the previous, current, and next month in the WeekCalendar. Is there any way to stop showing extra adjusted dates at the start and end and show the exact start of the previous month to the end of the next month?

Screenshot_2024-02-14-01-22-15-72_608bd3abcafb8c8ee94a2788e2ac1f12.jpg

rafiul587 commented 4 months ago

I think found the solution this will do the trick. `dayContent = { day -> if(day.position != WeekDayPosition.InDate && day.position != WeekDayPosition.OutDate){ Day(day.date, selected = selection == day.date) { selection = it } }

}`