CalendarView v0.4.1 Release Notes

Release Date: 2020-07-26 // over 3 years ago
  • 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.