{"id":15031632,"url":"https://github.com/alamkanak/android-week-view","last_synced_at":"2025-10-17T02:24:44.473Z","repository":{"id":20852953,"uuid":"24139593","full_name":"alamkanak/Android-Week-View","owner":"alamkanak","description":"Android Week View is an android library to display calendars (week view or day view) within the app. It supports custom styling.","archived":false,"fork":false,"pushed_at":"2024-05-30T16:25:55.000Z","size":814,"stargazers_count":3448,"open_issues_count":201,"forks_count":1226,"subscribers_count":151,"default_branch":"develop","last_synced_at":"2025-09-09T02:27:25.438Z","etag":null,"topics":["android","calendar","calendar-view","custom-view"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alamkanak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"alamkanak"}},"created_at":"2014-09-17T10:07:12.000Z","updated_at":"2025-08-31T13:23:53.000Z","dependencies_parsed_at":"2024-10-25T13:47:25.045Z","dependency_job_id":"830025a1-5905-4a8d-9017-9d38585fed47","html_url":"https://github.com/alamkanak/Android-Week-View","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/alamkanak/Android-Week-View","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alamkanak%2FAndroid-Week-View","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alamkanak%2FAndroid-Week-View/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alamkanak%2FAndroid-Week-View/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alamkanak%2FAndroid-Week-View/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alamkanak","download_url":"https://codeload.github.com/alamkanak/Android-Week-View/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alamkanak%2FAndroid-Week-View/sbom","scorecard":{"id":177288,"data":{"date":"2025-08-11","repo":{"name":"github.com/alamkanak/Android-Week-View","commit":"175c25cbe31a13c4352eac5828072e60aa1100ec"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":2,"reason":"Found 6/21 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact parent-1.2.6 not signed: https://api.github.com/repos/alamkanak/Android-Week-View/releases/2367692","Warn: release artifact parent-1.2.6 does not have provenance: https://api.github.com/repos/alamkanak/Android-Week-View/releases/2367692"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'","Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T17:58:33.757Z","repository_id":20852953,"created_at":"2025-08-16T17:58:33.757Z","updated_at":"2025-08-16T17:58:33.757Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279272522,"owners_count":26138152,"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-10-17T02:00:07.504Z","response_time":56,"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":["android","calendar","calendar-view","custom-view"],"created_at":"2024-09-24T20:16:13.450Z","updated_at":"2025-10-17T02:24:44.438Z","avatar_url":"https://github.com/alamkanak.png","language":"Java","funding_links":["https://github.com/sponsors/alamkanak"],"categories":[],"sub_categories":[],"readme":"Android Week View\n=================\n\n[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/Android-Week-View/Lobby)\n\n**Android Week View** is an android library to display calendars (week view or day view) within the app. It supports custom styling.\n\n![](images/screen-shot.png)\n\nFeatures\n------------\n\n* Week view calendar\n* Day view calendar\n* Custom styling\n* Horizontal and vertical scrolling\n* Infinite horizontal scrolling\n* Live preview of custom styling in xml preview window\n\nWho uses it\n---------------\n\n* [Series Addict](https://play.google.com/store/apps/details?id=com.alamkanak.seriesaddict)\n* Using the library? Just [tweet me](https://twitter.com/alamkanak) or [send me an email](mailto:alam.kanak@gmail.com).\n\nUsage\n---------\n\n1. Import the library into your project.\n  * Grab via maven\n  \n    ```xml\n    \u003cdependency\u003e\n      \u003cgroupId\u003ecom.github.alamkanak\u003c/groupId\u003e\n      \u003cartifactId\u003eandroid-week-view\u003c/artifactId\u003e\n      \u003cversion\u003e1.2.6\u003c/version\u003e\n      \u003ctype\u003eaar\u003c/type\u003e\n    \u003c/dependency\u003e\n    ```\n  * Grab via gradle\n  \n    ```groovy\n    compile 'com.github.alamkanak:android-week-view:1.2.6'\n    ```\n2. Add WeekView in your xml layout.\n\n    ```xml\n    \u003ccom.alamkanak.weekview.WeekView\n            android:id=\"@+id/weekView\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            app:eventTextColor=\"@android:color/white\"\n            app:textSize=\"12sp\"\n            app:hourHeight=\"60dp\"\n            app:headerColumnPadding=\"8dp\"\n            app:headerColumnTextColor=\"#8f000000\"\n            app:headerRowPadding=\"12dp\"\n            app:columnGap=\"8dp\"\n            app:noOfVisibleDays=\"3\"\n            app:headerRowBackgroundColor=\"#ffefefef\"\n            app:dayBackgroundColor=\"#05000000\"\n            app:todayBackgroundColor=\"#1848adff\"\n            app:headerColumnBackground=\"#ffffffff\"/\u003e\n    ```\n3. Write the following code in your java file.\n\n    ```java\n    // Get a reference for the week view in the layout.\n    mWeekView = (WeekView) findViewById(R.id.weekView);\n\n    // Set an action when any event is clicked.\n    mWeekView.setOnEventClickListener(mEventClickListener);\n\n    // The week view has infinite scrolling horizontally. We have to provide the events of a\n    // month every time the month changes on the week view.\n    mWeekView.setMonthChangeListener(mMonthChangeListener);\n\n    // Set long press listener for events.\n    mWeekView.setEventLongPressListener(mEventLongPressListener);\n    ```\n4. Implement `WeekView.MonthChangeListener`, `WeekView.EventClickListener`, `WeekView.EventLongPressListener` according to your need.\n\n5. Provide the events for the `WeekView` in `WeekView.MonthChangeListener.onMonthChange()` callback. Please remember that the calendar pre-loads events of three consecutive months to enable lag-free scrolling.\n\n    ```java\n    MonthLoader.MonthChangeListener mMonthChangeListener = new MonthLoader.MonthChangeListener() {\n        @Override\n        public List\u003cWeekViewEvent\u003e onMonthChange(int newYear, int newMonth) {\n            // Populate the week view with some events.\n            List\u003cWeekViewEvent\u003e events = getEvents(newYear, newMonth);\n            return events;\n        }\n    };\n    ```\n\nCustomization\n-------------------\n\nYou can customize the look of the `WeekView` in xml. Use the following attributes in xml. All these attributes also have getters and setters to enable you to change the style dynamically.\n\n- `allDayEventHeight`\n- `columnGap`\n- `dayBackgroundColor`\n- `dayNameLength`\n- `eventMarginVertical`\n- `eventPadding`\n- `eventTextColor`\n- `eventTextSize`\n- `firstDayOfWeek`\n- `headerColumnBackground`\n- `headerColumnPadding`\n- `headerColumnTextColor`\n- `headerRowBackgroundColor`\n- `headerRowPadding`\n- `hourHeight`\n- `hourSeparatorColor`\n- `hourSeparatorHeight`\n- `noOfVisibleDays`\n- `overlappingEventGap`\n- `textSize`\n- `todayBackgroundColor`\n- `todayHeaderTextColor`\n- `showDistinctPastFutureColor`\n- `futureBackgroundColor`\n- `pastBackgroundColor`\n- `showDistinctWeekendColor`\n- `futureWeekendBackgroundColor`\n- `pastWeekendBackgroundColor`\n- `showNowLine`\n- `nowLineColor`\n- `nowLineThickness`\n- `scrollDuration`\n\nInterfaces\n----------\n\nUse the following interfaces according to your need.\n\n- `mWeekView.setWeekViewLoader()` to provide events to the calendar\n- `mWeekView.setMonthChangeListener()` to provide events to the calendar by months\n- `mWeekView.setOnEventClickListener()` to get a callback when an event is clicked\n- `mWeekView.setEventLongPressListener()` to get a callback when an event is long pressed\n- `mWeekView.setEmptyViewClickListener()` to get a callback when any empty space is clicked\n- `mWeekView.setEmptyViewLongPressListener()` to get a callback when any empty space is long pressed\n- `mWeekView.setDateTimeInterpreter()` to set your own labels for the calendar header row and header column\n- `mWeekView.setScrollListener()` to get an event every time the first visible day has changed\n\nSample\n----------\n\nThere is also a [sample app](https://github.com/alamkanak/Android-Week-View/tree/master/sample) to get you started.\n\nTo do\n-------\n\n* Add event touch feedback selector\n* Show events that expand multiple days properly\n\nChangelog\n---------\n\n**Version 1.2.6**\n\n* Add empty view click listener\n* Fix padding bug\n* Fix bug when setting colors of different components\n* Add ability to turn off fling gesture\n* Add example of how to load events asynchronously in the sample app\n\n**Version 1.2.5**\n\n* Add support for using subclasses of `WeekViewEvent`\n* Fix scroll animation\n* Add support for semi-transparent header colors\n\n**Version 1.2.4**\n\n* **NOTE:** If you are using `WeekView.MonthChangeListener`, make sure to change it into `MonthLoader.MonthChangeListener`\n* Add support to have loaders other than MonthViewLoader\n* Add pinch to zoom support\n* Add support for location\n* Add ability to have different colors for past, future, weekend days\n* Add support for \"now\" line\n\n**Version 1.2.3**\n\n* Get callbacks when scrolling horizontally\n* `goToHour` and `goToDate` methods has been fixed\n* Use `getFirstVisibleHour` method to get the first visible hour in the week view\n\n**Version 1.2.1**\n\n* Better scrolling added\n* Get callbacks when empty view is tapped/long pressed\n* Control the speed of scrolling\n* Support for multiple language added\n* Ability to set your own interpreter for header row and column added\n\n**Version 1.1.7**\n\n* You can now dynamically scroll to an hour of your preference.\n\n**Version 1.1.6**\n\n* Added support for events that expands to multiple days\n\n**Version 1.1.5**\n\n* A bug related to overlapping events fixed\n* You can now programmatically get first and last visible day in the week view\n\n**Version 1.1.4**\n\n* Small bug fixed\n\n**Version 1.1.3**\n\n* Margins support added for overlapping events\n\n**Version 1.1.2**\n\n* Small bugs fixed\n* Hour separator inconsistency fixed\n\n**Version 1.1.1**\n\n* Overlapping event bug fixed\n\n**Version 1.1.0**\n\n* Added support for overlapping events\n\nLicense\n----------\n\n    Copyright 2014 Raquib-ul-Alam\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falamkanak%2Fandroid-week-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falamkanak%2Fandroid-week-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falamkanak%2Fandroid-week-view/lists"}