Skip to content

Commit 1de7dda

Browse files
authored
Release 2.6.2
2 parents 20b42ac + 12c8b52 commit 1de7dda

File tree

3 files changed

+43
-11
lines changed

3 files changed

+43
-11
lines changed

buildSrc/src/main/java/com/kizitonwose/calendar/buildsrc/Build.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ object Config {
1111
}
1212

1313
object Version {
14-
val android = "2.6.2-SNAPSHOT"
15-
val multiplatfrom = "2.6.2-SNAPSHOT"
14+
val android = "2.6.3-SNAPSHOT"
15+
val multiplatfrom = "2.6.3-SNAPSHOT"
1616

1717
fun String.isNoPublish() = this == VERSION_NO_PUBLISH
1818
}

docs/Compose.md

+35-3
Original file line numberDiff line numberDiff line change
@@ -422,20 +422,52 @@ fun Day(day: CalendarDay) {
422422

423423
- **isScrollInProgress**: Whether this calendar is currently scrolling by gesture, fling, or programmatically.
424424

425+
**`YearCalendarState` properties for `HorizontalYearCalendar` and `VerticalYearCalendar`:**
426+
427+
- **firstVisibleYear**: The first year that is visible on the calendar.
428+
429+
- **lastVisibleYear**: The last year that is visible on the calendar.
430+
431+
- **layoutInfo**: A subclass of `LazyListLayoutInfo` calculated during the last layout pass. For example, you can use it to calculate what items are currently visible.
432+
433+
- **isScrollInProgress**: Whether this calendar is currently scrolling by gesture, fling, or programmatically.
434+
425435
### State methods
426436

427-
**`CalendarState` methods:**
437+
**`CalendarState`**
438+
439+
- **scrollToDate(date: LocalDate)**: Instantly scroll to a date on the calendar without an animation.
428440

429-
- **scrollToMonth(month: YearMonth)**: Instantly scroll to a specific month on the calendar without an animation.
441+
- **animateScrollToDate(date: LocalDate)**: Scroll to a date on the calendar with smooth scrolling animation.
442+
443+
- **scrollToMonth(month: YearMonth)**: Instantly scroll to a month on the calendar without an animation.
430444

431445
- **animateScrollToMonth(month: YearMonth)**: Scroll to a month on the calendar with smooth scrolling animation.
432446

433-
**`WeekCalendarState` methods:**
447+
**`WeekCalendarState`**
448+
449+
- **scrollToDate(date: LocalDate)**: Instantly scroll to a date on the calendar without an animation.
450+
451+
- **animateScrollToDate(date: LocalDate)**: Scroll to a date on the calendar with smooth scrolling animation.
434452

435453
- **scrollToWeek(date: LocalDate)**: Instantly scroll to the week containing the given date on the calendar without an animation.
436454

437455
- **animateScrollToWeek(date: LocalDate)**: Scroll to the week containing the given date on the calendar with smooth scrolling animation.
438456

457+
**`YearCalendarState`**
458+
459+
- **scrollToDate(date: LocalDate)**: Instantly scroll to a date on the calendar without an animation.
460+
461+
- **animateScrollToDate(date: LocalDate)**: Scroll to a date on the calendar with smooth scrolling animation.
462+
463+
- **scrollToMonth(month: YearMonth)**: Instantly scroll to a month on the calendar without an animation.
464+
465+
- **animateScrollToMonth(month: YearMonth)**: Scroll to a month on the calendar with smooth scrolling animation.
466+
467+
- **scrollToYear(year: Year)**: Instantly scroll to a year on the calendar without an animation.
468+
469+
- **animateScrollToYear(year: Year)**: Scroll to a year on the calendar with smooth scrolling animation.
470+
439471
There's no need to repeat the documentation here. Please see the relevant class for all properties and methods available with proper documentation.
440472

441473
### Date clicks

docs/View.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ calendarView.dayBinder = object : MonthDayBinder<DayViewContainer> {
411411

412412
All the respective XML attributes listed above are also available as properties of the CalendarView and WeekCalendarView classes so they can be set via code. So in addition to those, we have:
413413

414-
**`CalendarView` properties:**
414+
**`CalendarView`**
415415

416416
- **monthScrollListener**: Called when the calendar scrolls to a new month. Mostly beneficial if `scrollPaged` is `true`.
417417

@@ -423,7 +423,7 @@ All the respective XML attributes listed above are also available as properties
423423

424424
- **monthMargins**: The margins, in pixels to be applied on each month view. This can be used to add a space between two months.
425425

426-
**`WeekCalendarView` properties:**
426+
**`WeekCalendarView`**
427427

428428
- **weekScrollListener**: Called when the calendar scrolls to a new week. Mostly beneficial if `scrollPaged` is `true`.
429429

@@ -435,7 +435,7 @@ All the respective XML attributes listed above are also available as properties
435435

436436
- **weekMargins**: The margins, in pixels to be applied on each week view. This can be used to add a space between two weeks.
437437

438-
**`YearCalendarView` properties:**
438+
**`YearCalendarView`**
439439

440440
- **yearScrollListener**: Called when the calendar scrolls to a new year. Mostly beneficial if `scrollPaged` is `true`.
441441

@@ -457,7 +457,7 @@ All the respective XML attributes listed above are also available as properties
457457

458458
### Methods
459459

460-
**`CalendarView` methods:**
460+
**`CalendarView`**
461461

462462
- **scrollToDate(date: LocalDate)**: Scroll to a specific date on the calendar. Use `smoothScrollToDate()` to get a smooth scrolling animation.
463463

@@ -475,7 +475,7 @@ All the respective XML attributes listed above are also available as properties
475475

476476
- **updateMonthData()**: Update the calendar's start month or end month or the first day of week after the initial setup. The currently visible month is preserved. The calendar can handle really large date ranges so you may want to setup the calendar with a large date range instead of updating the range frequently.
477477

478-
**`WeekCalendarView` methods:**
478+
**`WeekCalendarView`**
479479

480480
- **scrollToDate(date: LocalDate)**: Scroll to a specific date on the calendar. Use `smoothScrollToDate()` to get a smooth scrolling animation.
481481

@@ -493,7 +493,7 @@ All the respective XML attributes listed above are also available as properties
493493

494494
- **updateWeekData()**: Update the calendar's start date or end date or the first day of week after the initial setup. The currently visible week is preserved. The calendar can handle really large date ranges so you may want to setup the calendar with a large date range instead of updating the range frequently.
495495

496-
**`YearCalendarView` methods:**
496+
**`YearCalendarView`**
497497

498498
- **scrollToDate(date: LocalDate)**: Scroll to a specific date on the calendar. Use `smoothScrollToDate()` to get a smooth scrolling animation.
499499

0 commit comments

Comments
 (0)