{"id":23170107,"url":"https://github.com/alhazmy13/hijridatepicker","last_synced_at":"2025-08-18T07:31:18.504Z","repository":{"id":55023345,"uuid":"44434530","full_name":"alhazmy13/HijriDatePicker","owner":"alhazmy13","description":"Material  (Gregorian - Hijri) Date \u0026 Time Picker","archived":false,"fork":false,"pushed_at":"2022-11-27T07:38:03.000Z","size":620,"stargazers_count":145,"open_issues_count":13,"forks_count":66,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-05T23:31:30.958Z","etag":null,"topics":["android","dialog","dialogs","gregorian","hijri","material","picker","time"],"latest_commit_sha":null,"homepage":"alhazmy13.net","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/alhazmy13.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":"2015-10-17T11:25:38.000Z","updated_at":"2025-03-24T15:42:52.000Z","dependencies_parsed_at":"2023-01-22T08:45:33.438Z","dependency_job_id":null,"html_url":"https://github.com/alhazmy13/HijriDatePicker","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/alhazmy13/HijriDatePicker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alhazmy13%2FHijriDatePicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alhazmy13%2FHijriDatePicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alhazmy13%2FHijriDatePicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alhazmy13%2FHijriDatePicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alhazmy13","download_url":"https://codeload.github.com/alhazmy13/HijriDatePicker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alhazmy13%2FHijriDatePicker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270961499,"owners_count":24675914,"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-18T02:00:08.743Z","response_time":89,"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","dialog","dialogs","gregorian","hijri","material","picker","time"],"created_at":"2024-12-18T03:25:48.590Z","updated_at":"2025-08-18T07:31:18.151Z","avatar_url":"https://github.com/alhazmy13.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"left\"\u003e\n  \u003cimg src=\"https://cloud.githubusercontent.com/assets/4659608/12700270/e1730608-c7ed-11e5-8a18-a382fe7b63bd.png\" width=\"500\"\u003e\n\u003c/p\u003e\n\n\n\n# Hijri Date Picker (UmAlQuraCalendar)\n\n![](https://img.shields.io/badge/Platform-Android-brightgreen.svg)\n![](https://img.shields.io/badge/Android-CustomView-blue.svg)\n![](https://img.shields.io/crates/l/rustc-serialize.svg)\n![](https://img.shields.io/badge/version-3.0.0-blue.svg)\n\nThis library offers a hijri (Islamic Calendar) Date Picker  designed on [Google's Material Design Principals For Pickers](http://www.google.com/design/spec/components/pickers.html) for Android 5.0 (API 21) +.\n\nDemo | Hijri\n---- | ----\n\u003cimg src=\"https://cloud.githubusercontent.com/assets/4659608/23710316/58e61be0-042d-11e7-92d5-c4bf08a6509b.gif\" width=\"500\"\u003e | \u003cimg src=\"https://cloud.githubusercontent.com/assets/4659608/23705301/38fc59b0-041a-11e7-9090-6769154f55a4.png\" width=\"500\"\u003e\nTime | Gregorian\n\u003cimg src=\"https://cloud.githubusercontent.com/assets/4659608/23705300/38fc1248-041a-11e7-80b4-13086269f642.png\" width=\"500\"\u003e | \u003cimg src=\"https://cloud.githubusercontent.com/assets/4659608/23705299/38fbf510-041a-11e7-9df4-857dab2638a6.png\" width=\"500\"\u003e\n\nYou can report any issue on issues page. **Note: If you speak Arabic, you can submit issues with Arabic language and I will check them. :)**\n\n## Installation\n**Maven**\n\n```xml\n\u003cdependency\u003e\n\u003cgroupId\u003enet.alhazmy13.hijridatepicker\u003c/groupId\u003e\n\u003cartifactId\u003elibrary\u003c/artifactId\u003e\n\u003cversion\u003e3.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n**Gradle**\n\n```gradle\n\ndependencies {\n\tcompile 'net.alhazmy13.hijridatepicker:library:3.0.0'\n}\n```\n\n# Usage\nThe library follows the same API as other pickers in the Android framework.\nAfter adding the library, you need to:\n\n1. Implement an `onDateSet`\n2. Create a `HijriCalendarDialog` using the supplied factory\n3. Theme the pickers\n\n### Implement an `OnTimeSetListener/OnDateSetListener`\nIn order to receive the date  set in the picker, you will need to implement the `OnDateSetListener`  interfaces. Typically this will be the `Dialog`  that creates the Pickers. The callbacks use the same API as the standard Android pickers.\n\n\u003cu\u003e\u003cb\u003eNote:\u003c/b\u003e Months start from 0.\u003c/u\u003e\n\n```java\n // TimePickerDialog\n @Override\n    public void onTimeSet(TimePickerDialog view, int hourOfDay, int minute, int second) {\n        // YOUR CODE\n    }\n // GregorianDatePickerDialog\n   @Override\n    public void onDateSet(GregorianDatePickerDialog view, int year, int monthOfYear, int dayOfMonth) {\n        //YOUR CODE\n    }\n    \n    // HijriDatePickerDialog\n       @Override\n    public void onDateSet(HijriDatePickerDialog view, int year, int monthOfYear, int dayOfMonth) {\n        //YOUR CODE\n    }\n    \n```\n\n### Create a `GregorianDatePickerDialog`\nYou will need to create a new instance of `GregorianDatePickerDialog `. Once the dialogs are configured, you can call `show()`.\n\n```java\nCalendar now = Calendar.getInstance();\nGregorianDatePickerDialog dpd = GregorianDatePickerDialog.newInstance(\n\t\t  this,\n\t\t  now.get(Calendar.YEAR),\n\t\t  now.get(Calendar.MONTH),\n\t\t  now.get(Calendar.DAY_OF_MONTH));\ndpd.show(getFragmentManager(), \"GregorianDatePickerDialog\");\n```\n\n### Create a `HijriDatePickerDialog`\nSame as `GregorianDatePickerDialog` but you need to use `UmmalquraCalendar` insted of `Calendar` class.\n\n```java\nUmmalquraCalendar now = new UmmalquraCalendar();\nHijriDatePickerDialog dpd = HijriDatePickerDialog.newInstance(\n\t\t  this,\n\t\t  now.get(UmmalquraCalendar.YEAR),\n\t\t  now.get(UmmalquraCalendar.MONTH),\n\t\t  now.get(UmmalquraCalendar.DAY_OF_MONTH));\ndpd.show(getFragmentManager(), \"HijriDatePickerDialog\");\n```\n\n### `TimePickerDialog`\n\n\n```java\nCalendar now = Calendar.getInstance();\nTimePickerDialog tpd = TimePickerDialog.newInstance(\n                        this,\n                        now.get(Calendar.HOUR_OF_DAY),\n                        now.get(Calendar.MINUTE),\n                        mode24Hours.isChecked()\n                );\n```\n\n\n\n\n## Credits\n* [ummalqura-calendar Library](https://github.com/msarhan/ummalqura-calendar) \n* [MaterialDateTimePicker](https://github.com/wdullaer/MaterialDateTimePicker).\n\n\n## License\n\n    Copyright 2015 alhazmy\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falhazmy13%2Fhijridatepicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falhazmy13%2Fhijridatepicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falhazmy13%2Fhijridatepicker/lists"}