{"id":15119846,"url":"https://github.com/applikeysolutions/cosmocalendar","last_synced_at":"2025-05-15T04:03:40.830Z","repository":{"id":46603081,"uuid":"102344192","full_name":"ApplikeySolutions/CosmoCalendar","owner":"ApplikeySolutions","description":"📅 CosmoCalendar is a fully customizable calendar with a wide variety of features and displaying modes. ","archived":false,"fork":false,"pushed_at":"2022-12-06T09:26:07.000Z","size":2014,"stargazers_count":1622,"open_issues_count":78,"forks_count":285,"subscribers_count":35,"default_branch":"master","last_synced_at":"2025-04-14T01:59:06.207Z","etag":null,"topics":["calendar","calendar-dialog","calendarview","customizable"],"latest_commit_sha":null,"homepage":"https://applikeysolutions.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ApplikeySolutions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-04T09:32:58.000Z","updated_at":"2025-03-24T08:09:07.000Z","dependencies_parsed_at":"2023-01-24T06:31:01.812Z","dependency_job_id":null,"html_url":"https://github.com/ApplikeySolutions/CosmoCalendar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApplikeySolutions%2FCosmoCalendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApplikeySolutions%2FCosmoCalendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApplikeySolutions%2FCosmoCalendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApplikeySolutions%2FCosmoCalendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ApplikeySolutions","download_url":"https://codeload.github.com/ApplikeySolutions/CosmoCalendar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248809032,"owners_count":21164895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calendar","calendar-dialog","calendarview","customizable"],"created_at":"2024-09-26T02:00:25.530Z","updated_at":"2025-04-14T01:59:24.837Z","avatar_url":"https://github.com/ApplikeySolutions.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CosmoCalendar\n[![GitHub license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/AppliKeySolutions/CosmoCalendar/blob/master/LICENSE)\n\nMade by [Applikey Solutions](https://applikeysolutions.com)\n\n![](pictures/cosmo-calendar.png)\n\n* [Usage](#usage)\n* [Customization](#customization)\n   * [Common](#common)\n   * [Selection](#selection)\n   * [Current day](#current-day)\n   * [Navigation buttons](#navigation-buttons)\n   * [Weekend days](#weekend-days)\n   * [Connected days](#connected-days)\n   * [Disabled days](#disabled-days)\n   * [Month change listener](#month-change-listener)\n   * [Calendar dialog](#calendar-dialog)\n* [Demo](#demo)\n* [Release Notes](#release-notes)\n* [Contact Us](#contact-us)\n* [License](#license)\n\n# Usage\n  ```xml\n  compile 'com.github.applikeysolutions:cosmocalendar:1.0.4'\n  ```\n\n# Customization\n\n  ### Common\n  * calendarOrientation - Possible values: HORIZONTAL, VERTICAL\n  * calendarBackgroundColor\n  * monthTextColor\n  * otherDayTextColor\n  * dayTextColor\n  * firstDayOfTheWeek\n  * weekDayTitleTextColo\n  * showDaysOfWeek - Defines if we need to display week day titles for every month\n  * showDaysOfWeekTitle - Defines if we need to display week day title for whole calendar\n  \n  ### Selection\n  * selectionType - Possible values: SINGLE, MULTIPLE, RANGE, NONE\n  * selectedDayTextColor\n  * selectedDayBackgroundColor\n  * selectedDayBackgroundStartColor - Background color of START day from selected range\n  * selectedDayBackgroundEndColor - Background color of END day from selected range\n  * selectionBarMonthTextColor\n  \n  ### Current day\n  * currentDayTextColor\n  * currentDayIconRes\n  * currentDaySelectedIconRes\n  \n  ### Navigation buttons\n  * previousMonthIconRes\n  * nextMonthIconRes\n  \n  ### Weekend days\n  * weekendDays\n  ```java\n  calendarView.setWeekendDays(new HashSet(){{\n            add(Calendar.THURSDAY);\n            add(Calendar.TUESDAY);\n  }});\n  ```\n  \n  * weekendDayTextColor\n  \n  ### Connected days\n  You can add some days for example holidays:\n  ```java\n  //Set days you want to connect\n  Calendar calendar = Calendar.getInstance();\n  Set\u003cLong\u003e days = new TreeSet\u003c\u003e();\n  days.add(calendar.getTimeInMillis());\n  ...\n  \n  //Define colors\n  int textColor = Color.parseColor(\"#ff0000\");\n  int selectedTextColor = Color.parseColor(\"#ff4000\");\n  int disabledTextColor = Color.parseColor(\"#ff8000\");\n  ConnectedDays connectedDays = new ConnectedDays(days, textColor, selectedTextColor, disabledTextColor);\n\n  //Connect days to calendar\n  calendarView.addConnectedDays(connectedDays);\n  ```\n  and customize them:\n  * connectedDayIconRes;\n  * connectedDaySelectedIconRes;\n  * connectedDayIconPosition (TOP/BOTTOM);\n  ```java\n  calendarView.setConnectedDayIconPosition(ConnectedDayIconPosition.TOP);\n  ```\n  \n  ### Disabled days\n  You can add days so that you can not select them:\n  ```java\n  Set\u003cLong\u003e disabledDaysSet = new HashSet\u003c\u003e();\n  disabledDaysSet.add(System.currentTimeMillis());\n  calendarView.setDisabledDays(disabledDaysSet);\n  ```\n  #### Disabled days criteria\n  - month criteria range:\n  ```java\n  //from 1st to 5th day of the month\n  calendarView.setDisabledDaysCriteria(new DisabledDaysCriteria(1, 5, DisabledDaysCriteriaType.DAYS_OF_MONTH)); \n  ```\n  - week criteria range:\n  ```java\n  //from Monday to Friday\n  DisabledDaysCriteria criteria = new DisabledDaysCriteria(Calendar.MONDAY, Calendar.FRIDAY, DisabledDaysCriteriaType.DAYS_OF_WEEK);\n  calendarView.setDisabledDaysCriteria(criteria);\n  ```\n  \n  * disabledDayTextColor - Text color of disabled day\n  \n  ### Month change listener\n  ```java\n  calendarView.setOnMonthChangeListener(new OnMonthChangeListener() {\n            @Override\n            public void onMonthChanged(Month month) {\n                \n            }\n        });\n  ```\n\n  ### Calendar dialog\n   ```java\n   new CalendarDialog(this, new OnDaysSelectionListener() {\n            @Override\n            public void onDaysSelected(List\u003cDay\u003e selectedDays) {\n                \n            }\n        }).show();\n   ```\n# Demo\nSingle Choice             |  Multiple\n:-------------------------:|:-------------------------:\n![](pictures/Calendar-single_2.jpg)  |  ![](pictures/Calendar-multiple-years_2.jpg)\nRange             |  Customized\n![](pictures/Calendar-range-years_2.jpg)  |  ![](pictures/Calendar-dialogue-dark_2.jpg)\n\n# Release Notes\n\n### 1.0.0\n- Release version.\n\n### 1.0.1\n- Functionality optimization\n- Added disabled days criteria feature\n- Added more customization for connected days (selected/unselected icon, top/bottom position for icon)\n\n### 1.0.2\n- Added \"NONE\" selection type\n- The functionality of creating months is optimized\n- Added OnMonthChangeListener\n\n### 1.0.3\n- Fixed crash on swipe\n- Connected days logic changed. Now you can add multiple connected day lists!\n\n### 1.0.4\n- Fixed small bugs\n\n# Contact Us\n\nYou can always contact us via github@applikeysolutions.com 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!\n\n# License\n\n    MIT License\n\n    Copyright (c) 2017 Applikey Solutions\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapplikeysolutions%2Fcosmocalendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapplikeysolutions%2Fcosmocalendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapplikeysolutions%2Fcosmocalendar/lists"}