{"id":26272110,"url":"https://github.com/vrgsoftua/flexiblecalendarview","last_synced_at":"2026-02-26T16:02:14.497Z","repository":{"id":144224773,"uuid":"116974026","full_name":"VRGsoftUA/FlexibleCalendarView","owner":"VRGsoftUA","description":"Calendar view","archived":false,"fork":false,"pushed_at":"2018-01-11T09:01:32.000Z","size":384,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-05T16:55:07.802Z","etag":null,"topics":["calendar","calendar-view","kotlin"],"latest_commit_sha":null,"homepage":"http://vrgsoft.net/","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VRGsoftUA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-01-10T15:17:48.000Z","updated_at":"2019-05-03T13:41:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"694fdcdb-acfa-457b-b113-464c0eafa22c","html_url":"https://github.com/VRGsoftUA/FlexibleCalendarView","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/VRGsoftUA/FlexibleCalendarView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VRGsoftUA%2FFlexibleCalendarView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VRGsoftUA%2FFlexibleCalendarView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VRGsoftUA%2FFlexibleCalendarView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VRGsoftUA%2FFlexibleCalendarView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VRGsoftUA","download_url":"https://codeload.github.com/VRGsoftUA/FlexibleCalendarView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VRGsoftUA%2FFlexibleCalendarView/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272698370,"owners_count":24978440,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-view","kotlin"],"created_at":"2025-03-14T07:16:52.121Z","updated_at":"2026-02-26T16:02:14.406Z","avatar_url":"https://github.com/VRGsoftUA.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FlexibleCalendarView\n\u003cimg src=\"https://github.com/VRGsoftUA/FlexibleCalendarView/blob/master/1132495145.jpg\" width=\"250\"\u003e\n\n\n# Usage\n\n*For a working implementation, Have a look at the Sample Project - sample*\n\n1. Include the library as local library project.\n```gradle\nallprojects {\n    repositories {\n        maven { url 'https://jitpack.io' }\n    }\n}\n\ndependencies {\n\timplementation\"com.github.VRGsoftUA:FlexibleCalendarView:1.0.1\"\n}\n```\n2. Include the FlexibleCalendarView widget in your layout.\n\n\t```xml\n      \u003cnet.soft.vrg.flexiblecalendar.FlexibleCalendarView\n        android:id=\"@+id/calendar\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        app:fcv_background_color=\"@android:color/white\"\n        app:fcv_calendar_day_text_size=\"15sp\"\n        app:fcv_chosen_day_background_color=\"@color/colorGreen\"\n        app:fcv_chosen_day_background_drawable=\"@drawable/background\"\n        app:fcv_current_day_text_color=\"@android:color/darker_gray\"\n        app:fcv_current_month_other_days_background_drawable=\"@drawable/background\"\n        app:fcv_current_month_other_days_text_color=\"@color/colorAccent\"\n        app:fcv_current_month_text_color=\"@android:color/darker_gray\"\n        app:fcv_next_button=\"@drawable/ic_next\"\n        app:fcv_other_month_text_color=\"@color/colorPrimary\"\n        app:fcv_previous_button=\"@drawable/ic_previous\"\n        app:fcv_title_text_color=\"@color/colorGreen\"\n        app:fcv_week_days_color=\"@android:color/darker_gray\" /\u003e\n    ```\n3. You can do same with kotlin\n```kotlin\n         flexibleCalendarView.getSettings()\n                .setOnCalendarClickListener(this)\n                .setOnCalendarLongClickListener(this)\n                .setCalendarMonthCallback(this)\n```\n    \nor\n\n ```kotlin\n        vrCalendarView.getSettings()\n                       .setOnCalendarClickListener(this)\n                       .setOnCalendarLongClickListener(this)\n                       .setVRCalendarMonthCallback(this);\n ```\n\n4. You can update all days by calling flexibleCalendarView.getSettings().updateCalendar();\n\n    ```java\n     flexibleCalendarView.getSettings()\n                    .setOtherMonthTextStyle(FlexibleCalendarView.BOLD)\n                    .setCurrentMonthBackgroundColor(Color.CYAN)\n                    .updateCalendar()\n    ```\n    \n    if \u003cb\u003eFlexibleCalendarView.getSettings().updateCalendar()\u003c/b\u003e is called and you want to save some custom day\n    \u003cb\u003eList\u003cFlexibleCalendarView\u003e getCustomizeDayView(Calendar calendar)\u003c/b\u003e method should be overridden\n    \u003cb\u003egetCustomizeDayView(Calendar calendar)\u003c/b\u003e is return all days you need to make custom.\n    With parameter calendar you can get the year and the month to return customised days from specific month\n    ```kotlin\n          override fun getCustomizeDayView(calendar: Calendar): List\u003cCalendarDay\u003e {\n\n        return getCustomizeDayView(this)\n    }\n    \n    \n    fun getCustomizeDayView(context: Context): List\u003cCalendarDay\u003e {\n        val vrCalendarDays = ArrayList\u003cCalendarDay\u003e()\n\n        vrCalendarDays.add(getSomeDay(context))\n\n        return vrCalendarDays\n    }\n    \n      private fun getSomeDay(context: Context): CalendarDay {\n\n        val someDay = CalendarDay()\n\n        val someDaySettings = CalendarDaySettings()\n        someDaySettings.dayTextColor = Color.CYAN\n        someDay.calendarDaySettings = someDaySettings\n\n        val cal = Calendar.getInstance()\n        cal.add(Calendar.DAY_OF_MONTH, -3)\n        someDay.date = cal.time\n        someDay.calendarDaySettings = someDaySettings\n        return someDay\n    }\n    ```\n    You can set set whatever view you want and customise it like you want if standard customisation does not fit\n    \n    \u003cb\u003eAttention!!!\u003c/b\u003e\n    \n    View \u003cb\u003egetNewCustomiseView()\u003c/b\u003e should always return new View. other wise it doesn't work properly\n    ```kotlin\n     someDay.customViewCallback = object : CustomCalendarDayCallback {\n            override fun getNewCustomiseView(): View {\n                val imageView = ImageView(context)\n                imageView.setImageResource(R.drawable.simple_ex)\n                return imageView\n            }\n        }\n    ```\n\n    but if you need to update specific day it is better to call\n\n    ```kotlin\n        flexibleCalendarView.getSettings().updateCalendarDay(VrCalendarDay today, boolean hasToSelect);\n    ```\n    where flexibleCalendarView has settings to customise specific day - \u003cb\u003ehasToSelect\u003c/b\u003e should be false than\n    and hasToSelect is boolean that sets specific customisation\n    not from flexibleCalendarView settings but from default settings that has attribute \"chosen\". Like below\n    ```xml\n    app:fcv_chosen_day_background_color=\"@color/colorGreen\"\n    app:fcv_chosen_day_background_drawable=\"@drawable/background\"\n    ```\n    to update specific day you have to set VRCalendarDay.setDate(Date date); - it is required\n    ```kotlin\n       val today = CalendarDay()\n        today.date = Date()\n        return today\n    ```\n\n    Move to date with\n\n    flexibleCalendarView.moveToDate(Date date);\n\n5. There is onClick listener and onLongClick\n\t```kotlin\ninterface OnCalendarLongClickListener {\n    fun onCalendarDayLongClick(day: CalendarDay)\n}\n    ```\n\n   and\n\n    ```kotlin\n   interface OnCalendarClickListener {\n    fun onCalendarDayClick(day: CalendarDay)\n}\n\nthat returns VrCalendarDay you click on\n\n#### Customisation\n     You can add fields via xml or flexibleCalendarView or flexibleCalendarView.getSettings().\n     \n# Supported fields:\n\n| Method  | Type |\n| ------------- | ------------- |\n| fcr_current_day_text_color | color |\n| fcr_current_month_text_color | color |\n| fcr_other_month_text_color | color |\n| fcr_current_month_other_days_text_color | color |\n| fcr_chosen_day_text_color |color |\n| fcr_current_day_background_color | color |\n| fcr_current_month_background_color | color |\n| fcr_other_month_background_color | color |\n| fcr_current_month_other_days_background_color |color |\n| fcr_chosen_day_background_color | color |\n| fcr_current_day_background_drawable | integer |\n| fcr_current_month_background_drawable | integer |\n| fcr_other_month_background_drawable\" | integer |\n| fcr_current_month_other_days_background_drawable | integer |\n| fcr_chosen_day_background_drawable | integer |\n| fcr_calendar_day_text_size | dimension |\n| fcr_calendar_title_text_size | dimension |\n| fcr_next_button | integer | \n| fcr_previous_button | integer |\n| fcr_title_text_color | color |\n| fcr_background_color | color |\n| fcr_week_days_color | color |\n| fcr_current_day_text_style | normal,bold,italic |\n| fcr_current_month_text_style |  normal,bold,italic |\n| fcr_other_month_text_style |  normal,bold,italic |\n| fcr_current_month_other_days_text_style |  normal,bold,italic |\n| fcr_chosen_day_text_style |  normal,bold,italic |\n\n#### Contributing\n\n* Contributions are always welcome\n* If you want a feature and can code, feel free to fork and add the change yourself and make a pull request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvrgsoftua%2Fflexiblecalendarview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvrgsoftua%2Fflexiblecalendarview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvrgsoftua%2Fflexiblecalendarview/lists"}