{"id":13643494,"url":"https://github.com/mahendramahi/CalendarView","last_synced_at":"2025-04-21T02:30:33.200Z","repository":{"id":94736462,"uuid":"89235992","full_name":"mahendramahi/CalendarView","owner":"mahendramahi","description":null,"archived":false,"fork":false,"pushed_at":"2017-04-24T20:34:02.000Z","size":3731,"stargazers_count":150,"open_issues_count":2,"forks_count":24,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-09T15:42:47.326Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/mahendramahi.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}},"created_at":"2017-04-24T12:10:30.000Z","updated_at":"2024-04-29T21:11:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7db1643-de35-488d-a5f7-30f57f7c3298","html_url":"https://github.com/mahendramahi/CalendarView","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahendramahi%2FCalendarView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahendramahi%2FCalendarView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahendramahi%2FCalendarView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahendramahi%2FCalendarView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahendramahi","download_url":"https://codeload.github.com/mahendramahi/CalendarView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249986022,"owners_count":21356310,"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":[],"created_at":"2024-08-02T01:01:48.387Z","updated_at":"2025-04-21T02:30:31.442Z","avatar_url":"https://github.com/mahendramahi.png","language":"Java","funding_links":["https://ko-fi.com/A67613FQ'"],"categories":["日历时间"],"sub_categories":[],"readme":"# CalendarView\n\nHello Guys. Here are a simple and custom calendar view. \n\nInclude `jitpack.io` inside of **root** project `build.gradle`:\n\n```groovy\nallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url \"https://jitpack.io\" }\n\t\t}\n\t}\n```\n\n# In build.gradle\n``` java\ndependencies {\n\t        compile 'com.github.mahendramahi:CalendarView:1.0'\n\t}\n  \n```\n\n\n\u003cimg src=\"https://github.com/mahendramahi/CalendarView/blob/master/app/src/main/Screen1.png\" width=\"300\"\u003e \u003cimg src=\"https://github.com/mahendramahi/CalendarView/blob/master/app/src/main/Screen3.png\" width=\"300\"\u003e \u003cimg src=\"https://github.com/mahendramahi/CalendarView/blob/master/app/src/main/Screen4.png\" width=\"300\"\u003e\n\n\n\n **XML**\n \n         `\u003cio.mahendra.calendarview.widget.CalendarView\n         android:id=\"@+id/cal\"\n         android:layout_width=\"match_parent\"\n         android:layout_height=\"match_parent\"\n         android:background=\"@android:color/transparent\"\n         app:calendarBackgroundColor=\"@android:color/transparent\"\n         app:calendarTitleTextColor=\"@color/white_color\"\n         app:currentDayOfMonthColor=\"@color/white_color\"\n         app:dayOfWeekTextColor=\"@android:color/white\"\n         app:disabledDayBackgroundColor=\"@android:color/transparent\"\n         app:disabledDayTextColor=\"@color/disabletextcolor\"\n         app:selectedDayBackgroundColor=\"@color/colorAccent\"\n         app:titleLayoutBackgroundColor=\"@android:color/transparent\"\n         app:weekLayoutBackgroundColor=\"@android:color/transparent\"\n         tools:layout_editor_absoluteX=\"8dp\"\n         tools:layout_editor_absoluteY=\"8dp\"/\u003e`\n         \n         \n         \n     \n    \n **JAVA**\n \nCreate a Object \n``` java\nprivate CalendarView calendarView;\n``` \n\n\nInit The Object\n``` java\ncalendarView = (CalendarView) findViewById(R.id.cal);\n\n        calendarView.setFirstDayOfWeek(Calendar.MONDAY);\n        calendarView.setIsOverflowDateVisible(true);\n        calendarView.setCurrentDay(new Date(System.currentTimeMillis()));\n        calendarView.setBackButtonColor(R.color.colorAccent);\n        calendarView.setNextButtonColor(R.color.colorAccent);\n        calendarView.refreshCalendar(Calendar.getInstance(Locale.getDefault()));\n``` \n\nSet Listeners\n\n``` java\ncalendarView.setOnDateLongClickListener(new CalendarView.OnDateLongClickListener() {\n            @Override\n            public void onDateLongClick(@NonNull Date selectedDate) {\n\n                //OnDateLongClick Action here\n\n            }\n        });\n\n\n        calendarView.setOnMonthChangedListener(new CalendarView.OnMonthChangedListener() {\n            @Override\n            public void onMonthChanged(@NonNull Date monthDate) {\n\n                //OnMonthChanged Action Here\n\n            }\n        });\n        calendarView.setOnDateClickListener(new CalendarView.OnDateClickListener() {\n            @Override\n            public void onDateClick(@NonNull Date selectedDate) {\n\n                //OnDateClick Action Here\n\n            }\n        });\n\n        calendarView.setOnMonthTitleClickListener(new CalendarView.OnMonthTitleClickListener() {\n            @Override\n            public void onMonthTitleClick(@NonNull Date selectedDate) {\n\n                // OnMonthTitleClick Action here\n\n            }\n        });\n```\n\n\n# Download\n\n\u003ca href='https://ko-fi.com/A67613FQ' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi2.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\n        \n#Thank You\n\t\n         \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahendramahi%2FCalendarView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahendramahi%2FCalendarView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahendramahi%2FCalendarView/lists"}