All Projects → memfis19 → Cadar

memfis19 / Cadar

Licence: mit
Android solution which represents month and list calendar views.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Cadar

GCCalendar
A customizable calendar view for iOS 9+ written in Swift.
Stars: ✭ 53 (-85.28%)
Mutual labels:  calendar, calendar-view
Klendario
A Swift wrapper over the EventKit framework
Stars: ✭ 44 (-87.78%)
Mutual labels:  events, calendar
wp-event-calendar
The best way to manage events in WordPress
Stars: ✭ 46 (-87.22%)
Mutual labels:  events, calendar
React Native Add Calendar Event
Create, view or edit events in react native using the standard iOS / Android dialogs
Stars: ✭ 225 (-37.5%)
Mutual labels:  events, calendar
Cvcalendar
A custom visual calendar for iOS 8+ written in Swift (>= 4.0).
Stars: ✭ 3,435 (+854.17%)
Mutual labels:  calendar, calendar-view
kalend
React calendar component with support for multiple views and events
Stars: ✭ 135 (-62.5%)
Mutual labels:  events, calendar-view
networkdays
Networkdays functions ... including `networkdays` excel like function with no dependencies (no NumPy)
Stars: ✭ 22 (-93.89%)
Mutual labels:  events, calendar
Forcal
📅 Das AddOn ist ein variabel einsetzbarer Kalender(-Generator), Skedule, Newssystem, Event- und Terminplaner für REDAXO 5.x.
Stars: ✭ 52 (-85.56%)
Mutual labels:  events, calendar
sugarcalendar-core
Sugar Calendar plugin for WordPress
Stars: ✭ 40 (-88.89%)
Mutual labels:  events, calendar
CalendarView
日历控件
Stars: ✭ 14 (-96.11%)
Mutual labels:  calendar, calendar-view
Quasar Ui Qcalendar
QCalendar - Quasar App Extension, Vue CLI plug-in and UMD distributions available
Stars: ✭ 148 (-58.89%)
Mutual labels:  events, calendar
Primedatepicker
PrimeDatePicker is a tool that provides picking a single day, multiple days, and a range of days.
Stars: ✭ 292 (-18.89%)
Mutual labels:  calendar, calendar-view
Flutter Timeline
⌚️ A general flutter timeline widget based on real-world application references
Stars: ✭ 142 (-60.56%)
Mutual labels:  events, calendar
Fb2cal
Fetch Facebook Birthdays events and create an ICS file for use with calendar apps
Stars: ✭ 335 (-6.94%)
Mutual labels:  events, calendar
Ls.joyous
A calendar application for Wagtail
Stars: ✭ 53 (-85.28%)
Mutual labels:  events, calendar
node-google-calendar
Simple node module that supports Google Calendar API
Stars: ✭ 76 (-78.89%)
Mutual labels:  events, calendar
Calendar
Календарь событий по фронтенду
Stars: ✭ 395 (+9.72%)
Mutual labels:  events, calendar
Laravel Google Calendar
Manage events on a Google Calendar
Stars: ✭ 787 (+118.61%)
Mutual labels:  events, calendar
contao-events subscriptions
Contao extension that allows members of your website to subscribe to the events
Stars: ✭ 12 (-96.67%)
Mutual labels:  events, calendar
Jzcalendarweekview
Calendar Week & Day View in iOS Swift
Stars: ✭ 272 (-24.44%)
Mutual labels:  calendar, calendar-view

Cadar

Download Android Arsenal Build Status

Android solution which represents month and list calendars views and possibility to display events: just set of events and recurrent as well, but with limitations. For events processing I am using Ical4J library.

Example of most common using:

Add to your layout:
 <io.github.memfis19.cadar.view.MonthCalendar
        android:id="@+id/monthCalendar"
        android:layout_width="match_parent"
        android:layout_height="300dp" />
Using in code:
MonthCalendarConfiguration.Builder builder = new MonthCalendarConfiguration.Builder(this);
monthCalendar.setCalendarPrepareCallback(this);
monthCalendar.prepareCalendar(builder.build());

monthCalendar.setOnDayChangeListener(new OnDayChangeListener() {
    @Override
    public void onDayChanged(Calendar calendar) {
        Toast.makeText(MonthCalendarActivity.this, calendar.getTime().toString(), Toast.LENGTH_SHORT).show();
      }
    });
monthCalendar.setOnMonthChangeListener(new OnMonthChangeListener() {
    @Override
    public void onMonthChanged(Calendar calendar) {
        Toast.makeText(MonthCalendarActivity.this, calendar.getTime().toString(), Toast.LENGTH_SHORT).show();
      }
    });
...

@Override
public void onCalendarReady(CalendarController calendar) {
   monthCalendar.displayEvents(events, new DisplayEventCallback() {
   @Override
     public void onEventsDisplayed() {

     }
 });
}
Don't forget to release calendar:
@Override
protected void onDestroy() {
   super.onDestroy();
   monthCalendar.releaseCalendar();
}

For more specific using please look at sample project.

Events processing:

Events processing implemented in most simple way, each event has start date - date of start and end date - date of event end. Please notice that event does not have duration. so there is not exist stop date. Each event next periods for recurrency processting: none, every week, every 2 week, every 3 week, every 4 week, every month, every year. If event does npt have end date and repeat period set to none, that will single event, in case even has any other repeat period without end date, it will be endless event.

Month and list calendars limited in time, by defualt they displayed for 3 years. You are able to extend it via calendar configurations. In case if you want to use list and month calendars coupled, then you need to keep the same configuration settings for them.

One more important thing to know about event processing

In some cases during event processing, periods of calculaction may overlap and in this case events can be duplicated, to avoid this please override equals() and hashCode() methods in your model class which implements Event. For more details please look at sample source code.

How to add to your project?

compile 'io.github.memfis19:cadar:0.4.8'

Know issues

-Library has not release yet, so it will be extended in future. -Not full documentation will be fixed soon.

Roadmap

-Add more documentation; -Extend event's recurring settings; -Add more tools to customize list calendar UI.

Bugs and Feedback

For bugs, feature requests, and discussion please use GitHub Issues.

LICENSE

MIT License
Copyright (c) 2016 Rodion Surzhenko

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].