A calendar library for Android and Compose Multiplatform with view and Compose artifacts. You supply custom views or composables while the library handles calendar logic and scrolling.
Overview
Calendar is a library for building calendar interfaces in Android apps and Compose Multiplatform projects. It targets the classic Android view stack via RecyclerView and Jetpack Compose via LazyRow and LazyColumn, so you can shape day cells and the overall calendar layout yourself.
The library supports week, month, and year presentation modes, along with single-date, multi-date, or range selection. You can disable specific dates, set boundary limits on selectable ranges, and pick which weekday starts the week. Calendars can scroll horizontally or vertically, and you can jump to any date, week, month, or year by gesture or code.
A heat-map style mode helps visualize how values change over time, similar in spirit to contribution charts. Optional headers and footers can be attached per year, month, or week. Because the implementations extend RecyclerView or use Compose lazy lists, you can apply the same customization options those components already support.
Published artifacts include a Compose package for Android, a Compose Multiplatform package that relies on kotlinx-datetime, and a separate view-system package for Android. The multiplatform artifact is documented for Android, iOS, JavaScript, WasmJs, and desktop targets. Sample apps demonstrate common view and Compose patterns.
Key features
- Week, month, and year display modes
- Single, multiple, and range date selection
- Disabled dates and selectable range boundaries
- Fully custom day and calendar views or composables
- Configurable first day of the week
- Horizontal or vertical scrolling
- Heat-map style calendar presentation
- Optional year, month, and week headers or footers
Use cases
- Booking flows with custom day cell styling
- Date range pickers in Android or multiplatform apps
- Activity or contribution heat maps over time
- Month or year planners with custom headers
- Migrating existing RecyclerView calendars to Compose