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
"
"I enjoy getting Dispatch in my inbox. The content is light, fun, and still useful. I especially appreciate the small tips that are in each issue."
Annyce Davis
ex-Vice President of Engineering @ Meetup | GDE for Android
Join thousands of Android devs who look forward to Dispatch every week