Skip to content

Releases: kizitonwose/Calendar

1.0.1

02 Jan 12:16
Compare
Choose a tag to compare
  • The method notifyCalendarChanged() no longer calls notifyDataSetChanged() internally but instead calls notifyItemRangeChanged() on all indices which is more efficient.
  • Some fixes in the example project.
  • Minor improvements.

1.0.0

08 Nov 15:38
Compare
Choose a tag to compare
  • Remove deprecated fields and methods.
  • Remove month range update in the setup method. Calling this method multiple times will perform a full setup as expected. To update the start or end month, please use updateMonthRange() or updateMonthRangeAsync().

0.4.5

11 Oct 14:20
Compare
Choose a tag to compare
  • Fix calendar measure logic.
  • Update method documentation.

0.4.4

19 Sep 13:48
Compare
Choose a tag to compare
  • Add sizeAutoWidth() method to allow provding only hwight for auto-sizing (thanks @janbina)
  • Internal dependency updates.

0.4.3

16 Aug 14:37
Compare
Choose a tag to compare
  • Fix: Calendar is not updated when dataset changes in some cases.
  • Fix: Month scroll listener is not called when scrollToDay() is used in paged calendar mode.

0.4.2

27 Jul 15:59
Compare
Choose a tag to compare
  • Fix a regression in version 0.4.1

Please see the release notes for 0.4.1 for important changes.

0.4.1

26 Jul 14:13
Compare
Choose a tag to compare

Note: This release introduced a regression which is fixed in version 0.4.2, please use 0.4.2 instead.

  • New methods and properties:

    • setMonthMargins() and setMonthPadding() for setting the month margins and padding all at once to minimize data regeneration.

    • updateMonthConfiguration() and updateMonthConfigurationAsync() for seting the inDateStyle, outDateStyle, maxRowCount and hasBoundaries all at once to minimize data regeneration.

    • setupAsync() for the asynchronous setup of the calendar with an optional completion callback. This supplements the already available setup() method.

    • updateMonthRangeAsync() for the asynchronous update of start and/or end month. This supplements the already available updateMonthRange() method.

    • daySize for setting the size, in pixels for each day cell view. Replaces the deprecated dayWidth and dayHeight properties.

  • Deprecated methods and properties:

    • dayWidth and dayHeight properties are deprecated, daySize should be used instead.

    • updateStartMonth() and updateEndMonth() methods are deprecated as they are just helper methods that only made the code more obscure especially with the introduction of a lot of similarly-named methods for async operations. Use updateMonthRange() instead.

    • Property setters for monthMarginStart, monthMarginEnd, monthMarginTop, monthMarginBottom, monthPaddingStart, monthPaddingEnd, monthPaddingTop, monthPaddingBottom are deprecated, please use the equivalent setter methods setMonthMargins() and setMonthPadding().

  • Some internal placeholder views and view groups previously used by the calendar to keep things in place have been removed. This means your calendar should now look really nice in the layout inspector (thanks @luis-cortes)

  • A lot of other internal optimizations.

Many thanks to @luis-cortes for a lot of ideas and code contributions that went into this release.

0.4.0

11 Jul 10:05
Compare
Choose a tag to compare

0.3.5

11 Jun 17:21
Compare
Choose a tag to compare
  • Fix blink when CalendarView is used in a ConstraintLayout.
  • Internal dependency updates.

0.3.4

11 Apr 10:00
Compare
Choose a tag to compare
  • Fix: Wrong pagination logic when the Calendar size is larger than the month size.
  • Fix: Calendar height does not match the current month's height in vertical, paged mode.
  • Add cv_wrappedPageHeightAnimationDuration attribute for adjusting the duration of the animation used to change the CalendarView's height when needed. This is also available programmatically via the calendarView.wrappedPageHeightAnimationDuration property.