{"id":51328799,"url":"https://github.com/bashizip/business-hours-picker","last_synced_at":"2026-07-01T21:03:45.815Z","repository":{"id":54973608,"uuid":"172980770","full_name":"bashizip/business-hours-picker","owner":"bashizip","description":"A business hours picker and viewer  library for android","archived":false,"fork":false,"pushed_at":"2025-05-14T22:05:12.000Z","size":1728,"stargazers_count":29,"open_issues_count":1,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T23:19:49.544Z","etag":null,"topics":["android","ui","ui-components"],"latest_commit_sha":null,"homepage":"","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/bashizip.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":"2019-02-27T19:56:31.000Z","updated_at":"2025-05-14T22:05:16.000Z","dependencies_parsed_at":"2022-08-14T07:50:42.797Z","dependency_job_id":null,"html_url":"https://github.com/bashizip/business-hours-picker","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/bashizip/business-hours-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashizip%2Fbusiness-hours-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashizip%2Fbusiness-hours-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashizip%2Fbusiness-hours-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashizip%2Fbusiness-hours-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bashizip","download_url":"https://codeload.github.com/bashizip/business-hours-picker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashizip%2Fbusiness-hours-picker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35022617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"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","ui","ui-components"],"created_at":"2026-07-01T21:03:44.378Z","updated_at":"2026-07-01T21:03:45.804Z","avatar_url":"https://github.com/bashizip.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Business Hours Picker\nA business hours picker lib for android\n\n[![API](https://img.shields.io/badge/API-19%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=19) [![](https://jitpack.io/v/bashizip/business-hours-picker.svg)](https://jitpack.io/#bashizip/business-hours-picker) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Business%20Hours%20Picker-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/7540)\n[![bashizip](https://circleci.com/gh/bashizip/business-hours-picker.svg?style=shield)](\u003cLINK\u003e)\n\nWant to add a business hours picker and viewer in your application? Try this library !\n\n![screen1](https://raw.githubusercontent.com/bashizip/business-hours-picker/master/captures/device-2021-01-18-220722.png)\n![screen2](https://raw.githubusercontent.com/bashizip/business-hours-picker/master/captures/device-2021-01-18-221127.png)\n------------\nFeel free to fork or pull requests on github. Issues can be reported on the github issue tracker.\n\n## Installation\n\nStep 1 : Add jitpack to your build.gradle file\n\n\n\n\tallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n\n\n\n  Step 2 : Add the dependency\n\n\n\n \timplementation 'com.github.bashizip:business-hours-picker:1.1.1'\n\n## v1.1.1 Update\n\n- Upgrade gradle version\n- Update ReadMe\n- Removed the v prefix in version names\n\n\n## How to use it\n\n\nFirst, add the picker or the viewer you want to use in your layout files:\n\n  Use it to pick a full week of business days from monday to sunday\n ```xml\n \u003ccom.bashizip.bhlib.BusinessHoursWeekPicker\n        android:id=\"@+id/bh_picker\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"/\u003e\n```\n\n   Use it to display a full week of business days\n\n ```xml\n    \u003ccom.bashizip.bhlib.BusinessHoursWeekView\n        android:layout_centerInParent=\"true\"\n        android:id=\"@+id/bh_view\"\n        android:gravity=\"center\"\n        bh:bhTextSize=\"14\"\n        bh:bhIcon=\"@drawable/ic_today_black_24dp\"\n        bh:bhTodayIcon=\"@drawable/ic_today_black_24dp\"\n        bh:bhTextColor=\"@color/text_default_color\"\n        bh:bhTodayColor=\"@color/colorAccent\"\n        bh:bhTodayTextSize=\"16\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        /\u003e\n ```\n\n  Then in your java code :\n\n  **The picker activity or fragment**\n\n```java\n\t  BusinessHoursWeekPicker bh_picker = findViewById(R.id.bh_picker);\n\t  Button btn_apply = findViewById(R.id.btn_apply);\n\t     btn_apply.setOnClickListener(view -\u003e {\n\t\t   List\u003cBusinessHours\u003e bhs = bh_picker.getBusinessHoursList();\n\t\t   // Here do your stuffs with the list\n\t\t});\n ```\n\n\n   **The viewer activity or fragment**\n\n  ```java\n        List\u003cBusinessHours\u003e businessHoursList = getList();\n       // Just call the setModel method and it's done !\n       businessHoursWeekView.setModel(businessHoursList);\n ```\n\n  **You can also initialize the picker with a list of businessHours**\n\n  ```java\n        List\u003cBusinessHours\u003e businessHoursList = getList();\n        businessHoursPicker.setBusinessHoursList(businessHoursList);\n ```\n\nSee the full sample app for more details.\n\n## Styling\nYou can style the viewer  using theses attributes :\n\n| Attribute  | Description  |\n| ------------ | ------------ |\n| bhIcon  | Left icon of the day  |\n|bhTextColor   |  Text color |\n| bhTextSize  | Text Size  |\n| bhIconPadding  | Left icon padding  |\n|  bhTextStyle | Default text style   |\n|  bhTodayStyle | Today  text style (highlighted)   |\n|  bhTodayTextSize | Today  text size|\n| bhTodayIcon | Today left icon|\n\n\n\n\n\n  ## Licence\n\n      MIT License\n\n   \tCopyright (c) [2019] [Patrick Bashizi]\n\n  \t Permission is hereby granted, free of charge, to any person obtaining a copy\n  \t of this software and associated documentation files (the \"Software\"), to deal\n  \t in the Software without restriction, including without limitation the rights\n  \t to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n  \t copies of the Software, and to permit persons to whom the Software is\n   \tfurnished to do so, subject to the following conditions:\n\n  \t The above copyright notice and this permission notice shall be included in all\n   \tcopies or substantial portions of the Software.\n\n  \t THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n   \tIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n   \tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n   \tAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n \t  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n  \t OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n  \t SOFTWARE.\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashizip%2Fbusiness-hours-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbashizip%2Fbusiness-hours-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashizip%2Fbusiness-hours-picker/lists"}