Skip to content
This repository has been archived by the owner on Sep 29, 2018. It is now read-only.

ptrstovka/calendarview2

Repository files navigation

ANNOUNCEMENT

As I don't need this library for now, I stop maintaining it for a while. Please, use a prolific version as they are actively develop it.

Here is the prolific maitained version.

I will archive this repository for now, and will unarchive it when I will have time to develop this library.

Calendar View 2

Download Build Status

This is improved Material CalendarView from Prolific Interactive. My version 2+ has some breaking changes to the core, so the API is not backward compatible with prolific version.

Demo

Usage

The artifact is available on jcenter.

  1. Add library as dependency in your module build.gradle file.
compile 'com.ptrstovka.calendarview2:calendarview2:[latest version]'
  1. You are done, now you can use CalendarView2 in your code & layouts.

Example:

<com.ptrstovka.calendarview2.CalendarView2
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:mcv_weekDayTextAppearance="@style/CustomWeekTextAppearance"
        app:mcv_selectionColor="#4DB9C8"
        app:mcv_circlePadding="5dp"
        app:mcv_showOtherDates="all"
        />

Documentation

Make sure to check all the documentation available here.

Javadoc is available here.

More docs will be available on 2.0 release.

Customization

One of the aims of this library is to be customizable. The many options include:

Events, Highlighting, Custom Selectors, and More!

All of this and more can be done via the decorator api. Please check out the decorator documentation.

Custom Selectors and Colors

If you provide custom drawables or colors, you'll want to make sure they respond to state. Check out the documentation for custom states.

Contributing

Would you like to contribute? Fork us and send a pull request! Be sure to checkout our issues first.

License

Material Calendar View is Copyright (c) 2017 Prolific Interactive. It may be redistributed under the terms specified in the LICENSE file.

Maintainers

Version 1.+ is maintained and funded by Prolific Interactive. The names and logos are trademarks of Prolific Interactive.