Skip to content

edwardstock/vcalendar

Repository files navigation

VCalendar - Advanced Android RecyclerView infinite calendar view

Features

  • Customzing everything and everywhere
  • Day decorators
  • Few selection modes: single, multiple, range, even(todo), odd(todo), weekends(todo) etc
  • Handling attaching/removing lifecycler (visible month view will be attached, out of screen - detached)

Installing

// in root module
allprojects {
    repositories {
        maven { url "https://maven.edwardstock.com/artifactory/libs-release-local" }
    }
}
// in project module
dependencies {
    implementation 'com.edwardstock.android:vcalendar:1.3.1'
}

If you already have android implementation of JodaTime, and/or probably you have error "Program type already present: org.joda.time.Chronology" or something like this, than add instead this lines:

implementation ('com.edwardstock.android:vcalendar:1.3.1') {
    exclude group: 'joda-time'
}

Using

Initializing

// in your Application class
import com.edwardstock.vcalendar.VCalendar;
class App extends Application {
    
   public void onCreate() {
       super.onCreate();
       VCalendar.initialize(this);
   } 
}

Layout

<com.edwardstock.vcalendar.VCalendar
    android:id="@+id/cal"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:enableLegend="true"
    app:orientation="vertical"
    app:selectionBeginBackground="@drawable/bg_calendar_day_selection_begin"
    app:selectionEndBackground="@drawable/bg_calendar_day_selection_end"
    app:selectionMiddleBackground="@drawable/bg_calendar_day_selection_middle"
    app:selectionMode="range"
    app:selectionSingleBackground="@drawable/bg_calendar_day_selection_single"
/>

About

Android advanced fully customizable recyclerview calendar

Resources

License

Stars

Watchers

Forks

Packages

No packages published