Expandable Compose Calendar

by Mateusz Budnik

A Jetpack Compose library for rendering expandable calendar component

View on GitHub

Documentation

Expandable Compose Calendar

Expandable Compose Calendar

Integrate calendar with your Jetpack Compose project.

Expandable-Compose-Calendar

Java CI with Gradle

Introduction

A calendar with a week view that can be expanded to a month view

Setup

  1. Configure jitpack
  2. Add the dependency
dependencies {
  ...
  implementation 'com.github.mateusz800:Expandable-Compose-Calendar:<latest version>'
  ...
}

Usage

Add the ExpandableCalendar composable to your code:

ExpandableCalendar(onDayClick = {
    ...
})

Customization

ExpandableCalendar has an optional parameter named theme. By using this property you can
customize how your calendar will look like.

ExpandableCalendar(theme = calendarDefaultTheme.copy(
    // properties that you want to override
), onDayClick = {...})

CalendarTheme data class looks like

data class CalendarTheme(
    val backgroundColor: Color,
    val headerBackgroundColor: Color,
    val dayBackgroundColor: Color,
    val selectedDayBackgroundColor: Color,
    val dayValueTextColor: Color,
    val selectedDayValueTextColor: Color,
    val headerTextColor: Color,
    val weekDaysTextColor: Color,
    val dayShape: Shape
)

Support project

Contributing

Contributions are always welcome!

Show your support

ko-fi

Give a ⭐️ if this project helped you!

Dispatch Newsletter
Be the first to discover new Compose libraries
Curated Insights
Digest in 5 minutes or less
Android Analysis
Entertaining takes on happenings
Insider Tips
From top Android developers
Hidden Gems
You won't find elsewhere
"
"Dispatch is a must read for Android devs today and my go-to for keeping up with all things Jetpack Compose. I eagerly await each issue, not just for the Compose gems honestly but for Vinay's unique insights, stories, and finds. The Dev Delight and Featured Dev sections are particular favorites of mine! He really should do a podcast."
Kaushik Gopal
Principal Engineer @ Instacart | Host of the Fragmented Podcast | GDE for Android
Join thousands of Android devs who look forward to Dispatch every week