Skip to content

winniecake/custom-calendar

Repository files navigation

A Custom Calendar Library based on Kotlin MVVM architecture and compose

Tech/Tools

Features

  1. There are three calendar view : Month/One Week/Two Week
  2. Swiping left or right to change calendar page
  3. Providing three calendar theme : EarthTones/Light/Dark
  4. Setting which day is the start day of week

Demo

How to use

  1. Add the JitPack repository to settings.gradle
dependencyResolutionManagement {
    repositories {
        maven { url "https://jitpack.io" }
    }
}
  1. Add the dependency
dependencies {
    implementation 'com.github.winniecake:custom-calendar:1.0.2'
}
  1. Add WCalendar composable
WCalendar(
   modifier = Modifier.fillMaxWidth().wrapContentHeight(),
   type = WCalendarPeriod.Month,
   startDayOfWeek = WCalendarStartDayOfWeek.SUNDAY,
   theme = WCalendarThemeName.EarthTones,
   onDaySelected = { date -> }
)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages