(2020-02-09)
- Fixed: WeekView would crash on submitting new events when the previous submit was an empty list of events.
Thanks for reporting the issue, michaelbukachi!
(2020-02-06)
- Fixed:
goToHour(hour)scrolled to the wrong time ifminHourwas set. - Changed:
goToHour(hour)now throws anIllegalArgumentExceptionifhouris outside of the time range constructed byminHourandmaxHour.
Thanks for reporting the issue, Mkryglikov!
(2020-01-30)
- Fixed: Clicks on event chips weren't recognized after zooming in some cases.
Thanks for reporting these issues, Mkryglikov!
(2020-01-19)
- Fixed: Dynamically setting the time column background via
setTimeColumnBackgroundColor()didn't work. - Fixed: When
showFirstDayOfWeekFirst, WeekView would sometimes show the incorrect week.
Thanks for reporting these issues, Huakas!
(2020-01-13)
- Fixed: WeekView no longer crashes when
EmojiCompatis not used in the application.
Thanks for reporting this, Huakas!
(2019-12-09)
- New: Emojis in event titles and locations are now displayed correctly.
- New: When TalkBack is turned on,
WeekViewnow provides accessibility support for interacting with events.
(2019-11-01)
- Fixed: Event chips no longer disappear when scrolling in some cases.
- Fixed: Multi-day all-day events are no longer cut off after the first day.
Thanks for reporting issues, MohammadB72 and verzhbitski!
(2019-09-29)
This release includes many new features and breaking changes.
- New: Providing events to
WeekViewis now easier. Check out the wiki to find out more. - New: You can use JodaTime, JSR-310, and ThreeTenABP with
WeekView. Check out the wiki to find out more. - New: When building a
WeekViewEventviaWeekViewEvent.Builder, you can pass in resource IDs for the title and location. - New: When declaring the style of a
WeekViewEventviaWeekViewEvent.Style.Builder, you can pass in resource IDs for color and dimension properties. - New: You can use custom fonts with
WeekViewby settingfontFamily,typeface, andtextStylein the XML layout file. - New: You can set the text in event chips to adapt to the chip’s height by setting
isAdaptiveEventTextSize = trueorapp:adaptiveEventTextSize="true". - Changed:
WeekViewnow uses AndroidX instead of the old Support Library. - Changed:
WeekViewis now a 100% Kotlin project. - Changed:
WeekViewLoaderis removed; use any of the newEventsLoaders instead. - Changed: The naming of various listeners and setter methods is more unified. Check out the wiki to find out more.
- Changed: Use more extensive caching and reduce redundant
Canvasoperations for better performance. - Changed: The “now line” is now drawn over the entire width of a day.
- Changed: Event chips use anti-aliasing for smoother corner radiuses.
- Changed: The event location is displayed underneath the event title if there is enough space.
- Fixed: Live preview of
WeekViewin Android Studio is working again. - Fixed: Text is no longer being drawn outside of a too-small event chip.
- Fixed: Event clicks are no longer ignored or attributed to the wrong event.
- Fixed: A situation where both
OnEventLongClickListenerandOnEmptyViewLongClickListenerwere called no longer occurs.
Thanks to everyone who contributed to this release and reported issues!
(2019-05-10)
- Changed: The
columnGapattribute is now applied to all days currently visible. Previously, it was not applied to the last day. - Fixed: Calling
goToDate()no longer scrollsWeekViewto the wrong date.
Thanks to everyone who reported issues!
(2019-05-06)
- New: You can now use
WeekViewEvent.Builderto build aWeekViewEvent. - New: The styling of a
WeekViewEventis now done viaWeekViewEvent.Style, which you can construct viaWeekViewEvent.Style.Builder. You can use it to set the background color, text color, border width, border color and text strike-through of the event. - New:
WeekViewnow restores the currently displayed date on configuration changes. - Fixed: Calls to
setHeaderRowTextColor()andsetHeaderRowTextSize()are no longer ignored. - Fixed: Calling
notifyDataSetChanged()results inonMonthChange()being called again. - Fixed: On the day of a time change, 3 AM is no longer being shown twice in the time column.
- Fixed:
onMonthChange()is no longer called unnecessarily.
Thanks to everyone who reported issues!
(2019-03-17)
- New: You can now define the time range to be displayed for each day by setting
minHourandmaxHourin your layout XML, or by callingweekView.setMinHour()andweekView.setMaxHour()in your code. - New: You can now add the option to automatically scroll to the current time when
WeekViewis first displayed by settingshowCurrentTimeFirsttotrue. - New: You can opt to use a multi-line date header by setting
singleLineHeadertofalse. - Fix: The attribute
showNowLineis no longer ignored.
Thanks to Bwaim and Mauker1 for contributing to this release!
(2019-02-15)
- This release fixes a JitPack build error, which caused an exception when adding this library to a project.
(2019-02-15)
- New: Better interoperability with Kotlin by adding nullability information and lambda methods to WeekView
- New: You can limit the date range of the calendar via
weekView.setMinDate(date)andweekView.setMaxDate(date). - New: You can customize the interval of hours displayed in the time column.
- New: You can choose to display the hour separators in the time column.
- New: You can set a custom text color for individual events, via
weekViewEvent.setTextColor(int textColor). - New: The text size of all-day events can now be set via
allDayEventTextSize. The height of all-day event chips will adapt accordingly. In the same breath, this release deprecatesallDayEventHeight. - Improved: Events that span multiple days no longer show a corner radius at the end of a day if they continue on the next day, or at the beginning of a day if they began on the previous day.
- Improved: The paddings in the header have been tweaked to be more consistent.
- Fixed: Events after the change to daylight saving time were displayed on the wrong date.
- Fixed: Changing the number of days no longer scrolls the calendar back to the current date.
- Fixed: When
showFirstDayOfWeekFirstis set, WeekView now displays the correct day, depending on your setting offirstDayOfWeek. - Fixed: While scrolling, the header would sometimes shrink even if all-day events were visible. This is no longer the case.
Thanks Bwaim and cs8898 for contributing to this release!
(2018-12-01)
- Fix bug where
onMonthChangewas called with the wrong month (thanks for submitting the issue, tylermarien!)
(2018-11-25)
- Fix issue where a day’s events weren’t displayed until the user finished scrolling
- Fix bug where events longer than one day weren’t drawn (thanks for the fix, Menthuss!)
(2018-11-14)
- Fix bugs related to day and hour separators (thanks SapuSeven!)
(2018-11-13)
- Update naming of methods and view attributes. While this unfortunately is another breaking change, the updated naming should be more future-prove.
- Add a customizable bottom line below the header (off by default).
- Add a customizable vertical line between the time column and the events area (off by default).
- Add option
horizontalScrollingEnabledto completely disable horizontal scrolling. This is helpful for static calendar views that always show a particular time span. - Save number of visible days on orientation change, so that it doesn’t go back to the initial value after a device rotation.
(2018-11-04)
- Refactor the project for improved understandability (contributions welcome!)
- Change
EventClickListenerto return the class that is provided inonMonthChange(startDate, endDate)instead of aWeekViewEvent
(2018-09-19)
- Introduce attribute
singleDayHorizontalMarginto specify the start and end margin for events in the single-day view
(2018-09-08)
- Introduce
WeekViewDisplayableinterface
- See: original repository