All Projects → ApplikeySolutions → Cosmocalendar

ApplikeySolutions / Cosmocalendar

Licence: mit
📅 CosmoCalendar is a fully customizable calendar with a wide variety of features and displaying modes.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Cosmocalendar

Koyomi
Simple customizable calendar component in Swift 📆
Stars: ✭ 716 (-53.72%)
Mutual labels:  customizable, calendar
Flutter Timeline
⌚️ A general flutter timeline widget based on real-world application references
Stars: ✭ 142 (-90.82%)
Mutual labels:  customizable, calendar
Calendarview
A highly customizable calendar library for Android, powered by RecyclerView.
Stars: ✭ 2,862 (+85%)
Mutual labels:  calendar, calendarview
THCalendar
Calendar like iOS
Stars: ✭ 21 (-98.64%)
Mutual labels:  calendar, customizable
Cvcalendar
A custom visual calendar for iOS 8+ written in Swift (>= 4.0).
Stars: ✭ 3,435 (+122.04%)
Mutual labels:  calendar, calendarview
Timestamp
⏰ A better macOS menu bar clock.
Stars: ✭ 296 (-80.87%)
Mutual labels:  customizable, calendar
Customizablecalendar
CustomizableCalendar is a library that allows you to create your calendar, customizing UI and behaviour
Stars: ✭ 214 (-86.17%)
Mutual labels:  customizable, calendar
React Modern Calendar Datepicker
A modern, beautiful, customizable date picker for React
Stars: ✭ 555 (-64.12%)
Mutual labels:  customizable, calendar
Calendarview
Android上一个优雅、万能自定义UI、仿iOS、支持垂直、水平方向切换、支持周视图、自定义周起始、性能高效的日历控件,支持热插拔实现的UI定制!支持标记、自定义颜色、农历、自定义月视图各种显示模式等。Canvas绘制,速度快、占用内存低,你真的想不到日历居然还可以如此优雅!An elegant, highly customized and high-performance Calendar Widget on Android.
Stars: ✭ 7,998 (+417%)
Mutual labels:  calendar, calendarview
Hydra
A simple customizable cross-platform IDE
Stars: ✭ 109 (-92.95%)
Mutual labels:  customizable
Csdwheels
一套基于原生JavaScript开发的插件,无依赖、体积小
Stars: ✭ 114 (-92.63%)
Mutual labels:  calendar
Strapi
🚀 Open source Node.js Headless CMS to easily build customisable APIs
Stars: ✭ 41,786 (+2601.1%)
Mutual labels:  customizable
Pg Calendar
📆 beautiful and eidetic date picker
Stars: ✭ 109 (-92.95%)
Mutual labels:  calendar
Angularjs Responsivecalendar
A pure AngularJS responsive calendar directive
Stars: ✭ 114 (-92.63%)
Mutual labels:  calendar
D3 Org Tree
A highly customizable org tree built with d3.js v5
Stars: ✭ 109 (-92.95%)
Mutual labels:  customizable
Calendar
微信小程序日历 酒店日历选择 带公历节日
Stars: ✭ 116 (-92.5%)
Mutual labels:  calendar
Fscalendar
A fully customizable iOS calendar library, compatible with Objective-C and Swift
Stars: ✭ 9,829 (+535.36%)
Mutual labels:  calendar
Timex
A complete date/time library for Elixir projects.
Stars: ✭ 1,538 (-0.58%)
Mutual labels:  calendar
Chrono
Date and time library for Rust
Stars: ✭ 1,780 (+15.06%)
Mutual labels:  calendar
Compactcalendarview
An android library which provides a compact calendar view much like the one used in google calenders.
Stars: ✭ 1,504 (-2.78%)
Mutual labels:  calendar

CosmoCalendar

GitHub license

Made by Applikey Solutions

Usage

compile 'com.github.applikeysolutions:cosmocalendar:1.0.4'

Customization

Common

  • calendarOrientation - Possible values: HORIZONTAL, VERTICAL
  • calendarBackgroundColor
  • monthTextColor
  • otherDayTextColor
  • dayTextColor
  • firstDayOfTheWeek
  • weekDayTitleTextColo
  • showDaysOfWeek - Defines if we need to display week day titles for every month
  • showDaysOfWeekTitle - Defines if we need to display week day title for whole calendar

Selection

  • selectionType - Possible values: SINGLE, MULTIPLE, RANGE, NONE
  • selectedDayTextColor
  • selectedDayBackgroundColor
  • selectedDayBackgroundStartColor - Background color of START day from selected range
  • selectedDayBackgroundEndColor - Background color of END day from selected range
  • selectionBarMonthTextColor

Current day

  • currentDayTextColor
  • currentDayIconRes
  • currentDaySelectedIconRes

Navigation buttons

  • previousMonthIconRes
  • nextMonthIconRes

Weekend days

  • weekendDays
calendarView.setWeekendDays(new HashSet(){{
          add(Calendar.THURSDAY);
          add(Calendar.TUESDAY);
}});
  • weekendDayTextColor

Connected days

You can add some days for example holidays:

//Set days you want to connect
Calendar calendar = Calendar.getInstance();
Set<Long> days = new TreeSet<>();
days.add(calendar.getTimeInMillis());
...

//Define colors
int textColor = Color.parseColor("#ff0000");
int selectedTextColor = Color.parseColor("#ff4000");
int disabledTextColor = Color.parseColor("#ff8000");
ConnectedDays connectedDays = new ConnectedDays(days, textColor, selectedTextColor, disabledTextColor);

//Connect days to calendar
calendarView.addConnectedDays(connectedDays);

and customize them:

  • connectedDayIconRes;
  • connectedDaySelectedIconRes;
  • connectedDayIconPosition (TOP/BOTTOM);
calendarView.setConnectedDayIconPosition(ConnectedDayIconPosition.TOP);

Disabled days

You can add days so that you can not select them:

Set<Long> disabledDaysSet = new HashSet<>();
disabledDaysSet.add(System.currentTimeMillis());
calendarView.setDisabledDays(disabledDaysSet);

Disabled days criteria

  • month criteria range:
//from 1st to 5th day of the month
calendarView.setDisabledDaysCriteria(new DisabledDaysCriteria(1, 5, DisabledDaysCriteriaType.DAYS_OF_MONTH)); 
  • week criteria range:
//from Monday to Friday
DisabledDaysCriteria criteria = new DisabledDaysCriteria(Calendar.MONDAY, Calendar.FRIDAY, DisabledDaysCriteriaType.DAYS_OF_WEEK);
calendarView.setDisabledDaysCriteria(criteria);
  • disabledDayTextColor - Text color of disabled day

Month change listener

calendarView.setOnMonthChangeListener(new OnMonthChangeListener() {
          @Override
          public void onMonthChanged(Month month) {
              
          }
      });

Calendar dialog

new CalendarDialog(this, new OnDaysSelectionListener() {
         @Override
         public void onDaysSelected(List<Day> selectedDays) {
             
         }
     }).show();

Demo

Single Choice Multiple
Range Customized

Release Notes

1.0.0

  • Release version.

1.0.1

  • Functionality optimization
  • Added disabled days criteria feature
  • Added more customization for connected days (selected/unselected icon, top/bottom position for icon)

1.0.2

  • Added "NONE" selection type
  • The functionality of creating months is optimized
  • Added OnMonthChangeListener

1.0.3

  • Fixed crash on swipe
  • Connected days logic changed. Now you can add multiple connected day lists!

1.0.4

  • Fixed small bugs

Contact Us

You can always contact us via [email protected] We are open for any inquiries regarding our libraries and controls, new open-source projects and other ways of contributing to the community. If you have used our component in your project we would be extremely happy if you write us your feedback and let us know about it!

License

MIT License

Copyright (c) 2017 Applikey Solutions

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].