{"id":13643439,"url":"https://github.com/nomanr/WeekCalendar","last_synced_at":"2025-04-21T01:32:47.171Z","repository":{"id":102552029,"uuid":"47615698","full_name":"nomanr/WeekCalendar","owner":"nomanr","description":"A simple weekly calendar.","archived":true,"fork":false,"pushed_at":"2019-03-17T14:59:35.000Z","size":5338,"stargazers_count":646,"open_issues_count":34,"forks_count":128,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-03-27T12:31:19.253Z","etag":null,"topics":["android","android-application","androidapp","calendar","week"],"latest_commit_sha":null,"homepage":"","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/nomanr.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":"2015-12-08T10:39:07.000Z","updated_at":"2025-03-11T16:48:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"d6ff8f2a-50da-42ea-8c8c-44676964fe87","html_url":"https://github.com/nomanr/WeekCalendar","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomanr%2FWeekCalendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomanr%2FWeekCalendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomanr%2FWeekCalendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomanr%2FWeekCalendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nomanr","download_url":"https://codeload.github.com/nomanr/WeekCalendar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249982641,"owners_count":21355735,"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":["android","android-application","androidapp","calendar","week"],"created_at":"2024-08-02T01:01:47.642Z","updated_at":"2025-04-21T01:32:43.737Z","avatar_url":"https://github.com/nomanr.png","language":"Java","readme":"\nI AM NOT WORKING ON THIS LIBRARY ANYMORE. I AM NOT VERY PROUD OF THEY WAY I WROTE THIS WIDGET :grin:. I WOULD RECOMMEND TO USE CALENDAR AS A CUSTOM VIEW INSTEAD OF ADDING IT AS GRADLE DEPENDENCY. FORKS + PRS ARE WELCOME. \n\n\n\u003cbr/\u003e\u003cbr/\u003e\u003cimg src=\"https://raw.githubusercontent.com/nomanr/WeekCalendar/master/images/cover.png\"\u003e\n\u003cp\u003e\u003cb\u003eWeekCalendar\u003c/b\u003e is a library which provides a weekly calendar. \u003c/p\u003e\nThe sample project includes the usage of the library.\nSupport for Android 4.0 and up.\n\nFeel free to fork or issue pull requests on github. Issues can be reported on the github issue tracker.\n\n\u003ca href=\"https://play.google.com/store/apps/details?id=noman.weekcalendar\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/nomanr/WeekCalendar/master/images/google_play.png\" width=\"250\" target=\"_blank\"/\u003e\u003c/a\u003e\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-WeekCalendar-green.svg?style=true)](https://android-arsenal.com/details/1/2905)\n\n\n\u003ch3\u003eDemo\u003c/h3\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/nomanr/WeekCalendar/master/images/gif.gif\" width=\"400\"\u003e\n\n\n\u003ch3\u003eSetup\u003c/h3\u003e\n\n\n----------\n\n\n\u003ch5\u003eGradle\u003c/h5\u003e\n\n    dependencies {\n       compile 'noman.weekcalendar:weekcalendar:1.0.6'\n    }\n\n \u003ch5\u003eMaven\u003c/h5\u003e\n\n    \u003cdependency\u003e\n      \u003cgroupId\u003enoman.weekcalendar\u003c/groupId\u003e\n      \u003cartifactId\u003eweekcalendar\u003c/artifactId\u003e\n      \u003cversion\u003e1.0.6\u003c/version\u003e\n    \u003c/dependency\u003e\n\n\u003ch3\u003eSample Usage\u003c/h3\u003e\n\n\n----------\n\n     \u003cnoman.weekcalendar.WeekCalendar\n        android:id=\"@+id/weekCalendar\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"65dp\"\n        android:background=\"@color/colorPrimary\"/\u003e\n\u003ch4\u003eTheme the calendar\u003c/h4\u003e\nThere are a few xml attributes to customise the calendar. If you feel that any customization option is missing, let me know.\n\n\n----------\n\n - `numOfPages` \n - `daysTextSize`\n - `daysTextColor`\n - `daysBackgroundColor`\n - `weekTextSize`\n - `weekTextColor`\n - `weekBackgroundColor`\n - `selectedBgColor`\n - `todaysDateBgColor`\n - `todaysDateTextColor`\n - `dayNameLength`\n - `hideNames`\n\n----------\n\n\u003ch5\u003eExample\u003c/h5\u003e\n\n     \u003cnoman.weekcalendar.WeekCalendar\n       android:id=\"@+id/weekCalendar\"\n       android:layout_width=\"match_parent\"\n       android:layout_height=\"65dp\"\n       android:background=\"@color/colorPrimary\"\n       app:numOfPages=\"150\"\n       app:dayNameLength=\"threeLetters\"\n       app:todaysDateBgColor=\"#ffffff\"\n       app:todaysDateTextColor=\"#000000\"/\u003e\n\n\u003ch5\u003eExplained\u003c/h5\u003e\n\n - `numOfPages`  by default, calendar has 100 pages. You can scroll 49 to left and 49 to right. Using this attribute you can set number of pages. You can send it to 1000, it depends on requirements. \n - `daysTextSize` day means day of the month. By default text size is `17sp`.\n - `daysTextColor` by default the day text color is set to be white.\n - `daysBackgroundColor` if you have `colorPrimary` attribute in `color.xml`, then the backgroud color will be that one. Otherwise the purple color shown in the demo.\n - `weekTextSize` week means day of the week,i.e (S,M,T ..). By default text size is `17sp`.\n - `weekTextColor` by default the week day text color is set to be white.\n - `weekBackgroundColor`  same as `daysBackgroundColor`\n - `selectedBgColor` By default, its color is set to be `colorAccent`, if you've that attribute in attribute in `color.xml`, then the backgroud color will be that one. Otherwise the pink color shown in the demo.\n - `todaysDateBgColor` todays date background color, same as `selectedBgColor`.\n - `todaysDateTextColor` todays date text color,  by default the text color is set to be white.\n - `dayNameLength` week day name length, `singleLetter` means (S,M,T..) and `threeLetters` means (Sun, Mun, Tue..)\n - `hideNames` , set this attribute to hide name of week days.\n\n\n----------\n\u003ch3\u003eImpelement Listener \u003c/h3\u003e\n`OnDateClickListener` returns `DateTime` object. `DateTime` is class available in \u003ca href=\"http://www.joda.org/joda-time/\" target=\"_blank\"\u003eJoda Time\u003c/a\u003e. I will recommend using this library if you are playing with date and time.\n\n    weekCalendar.setOnDateClickListener(new OnDateClickListener() {\n            @Override\n            public void onDateClick(DateTime dateTime) {\n                Toast.makeText(MainActivity.this, \n                \"You Selected \" + dateTime.toString(), Toast.LENGTH_SHORT).show();\n            }\n\n        });\n  See the sample project for usage of methods like \n  - `reset()` \n  - `moveToNext()` \n  - `moveToPrevious()`\n  - `setSelectedDate(DateTime)`\n  - `setStartDate(DateTime)`\n\n\n\u003ch3\u003eLibraries Used\u003c/h3\u003e\n\n\n----------\n - \u003ca href=\"http://www.joda.org/joda-time/\" target=\"_blank\"\u003eJoda Time\u003c/a\u003e\n - \u003ca href=\"https://github.com/square/otto\" target=\"_blank\"\u003eOtto\u003c/a\u003e\n\n\u003ch3\u003eLicense\u003c/h3\u003e\n\n\n----------\n\n    Copyright (c) 2015 Noman Rafique\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n    \n    http://www.apache.org/licenses/LICENSE-2.0\n    \n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n    \n\n","funding_links":[],"categories":["Java","日历时间"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomanr%2FWeekCalendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnomanr%2FWeekCalendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomanr%2FWeekCalendar/lists"}