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
for swipe smoothly, How to Preload data in MonthDayBinder for previous and next month?
When i swipe the month then it lags some milliseconds. so what to do for preload views for some months?
exFiveCalendar.dayBinder = object : MonthDayBinder<DayViewContainer> { override fun create(view: View) = DayViewContainer(view) override fun bind(container: DayViewContainer, data: CalendarDay) { container.binding.tvDate.text = data.date.dayOfMonth.toString() // Some code for event previews } }
I have this output
The text was updated successfully, but these errors were encountered:
This is a bit tricky but you'll need to override the internal layout manager and override calculateExtraLayoutSpace.
calculateExtraLayoutSpace
See documentation
Sorry, something went wrong.
how to add calculateExtraLayoutSpace for this?
<com.kizitonwose.calendar.view.CalendarView android:id="@+id/exFiveCalendar" android:layout_width="match_parent" android:layout_height="match_parent" app:cv_daySize="rectangle" android:background="@color/month_divider" app:cv_dayViewResource="@layout/item_month_day" app:cv_outDateStyle="endOfGrid" />
There's no way to do this via xml presently.
No branches or pull requests
Library information:
Question:
for swipe smoothly, How to Preload data in MonthDayBinder for previous and next month?
When i swipe the month then it lags some milliseconds. so what to do for preload views for some months?
I have this output
The text was updated successfully, but these errors were encountered: