Skip to content

2.6.2

Latest
Compare
Choose a tag to compare
@kizitonwose kizitonwose released this 19 Jan 13:15
· 5 commits to main since this release

View:

  • Allow overriding calculateExtraLayoutSpace in the layout manager.
  • Minimum SDK version is now 21 due to a bump in RecyclerView version.

Compose:

The following methods are now available in the compose module:

Month calendar:

  • scrollToDate
  • scrollToDay
  • animateScrollToDate
  • animateScrollToDay

Week calendar:

  • scrollToDate
  • scrollToDay
  • animateScrollToDate
  • animateScrollToDay

Year calendar:

  • scrollToDate
  • scrollToDay
  • scrollToMonth
  • animateScrollToDate
  • animateScrollToDay
  • animateScrollToMonth

Note that unlike the view system (RecyclerView) which allows offset calculation when the scroll target index becomes visible on the screen, compose (LazyList) requires you to provide the desired scroll offset for the target index before initiating the scroll. Therefore, the current implementation assumes equal-sized headers in each item to be able to calculate the day offset in the target index.