{"id":16243968,"url":"https://github.com/fei-sheng-wu/androiddatetimepicker","last_synced_at":"2025-03-19T17:33:04.098Z","repository":{"id":146463156,"uuid":"300442413","full_name":"Fei-Sheng-Wu/AndroidDateTimePicker","owner":"Fei-Sheng-Wu","description":"A date \u0026 time picker component for Android. Light themed design, fullscreen picker dialog, and native Material components only. Support setting default selected date \u0026 time, and selection result callback handler. Support custom button icon, title text, and colors. Minimum dependency of SDK 5.0.","archived":false,"fork":false,"pushed_at":"2024-07-24T13:46:17.000Z","size":169,"stargazers_count":12,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T20:25:46.369Z","etag":null,"topics":["android","android-x","date","datepicker","datepickerdialog","datetime","datetimepicker","dialog","fullscreen-dialog","material-design","material-ui","timepicker","timepickerdialog"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fei-Sheng-Wu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2020-10-01T22:38:03.000Z","updated_at":"2024-12-07T16:26:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7dac7c9-88b6-4542-b4ac-ee620ce45548","html_url":"https://github.com/Fei-Sheng-Wu/AndroidDateTimePicker","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/Fei-Sheng-Wu%2FAndroidDateTimePicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fei-Sheng-Wu%2FAndroidDateTimePicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fei-Sheng-Wu%2FAndroidDateTimePicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fei-Sheng-Wu%2FAndroidDateTimePicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fei-Sheng-Wu","download_url":"https://codeload.github.com/Fei-Sheng-Wu/AndroidDateTimePicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244010927,"owners_count":20383333,"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-x","date","datepicker","datepickerdialog","datetime","datetimepicker","dialog","fullscreen-dialog","material-design","material-ui","timepicker","timepickerdialog"],"created_at":"2024-10-10T14:17:08.146Z","updated_at":"2025-03-19T17:33:03.774Z","avatar_url":"https://github.com/Fei-Sheng-Wu.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AndroidDateTimePicker\n\n[![Min SDK](https://img.shields.io/badge/Min%20SDK-5.0-green.svg?style=flat-square)](https://developer.android.com/studio/releases/platforms#5.0)\n[![Lincense](https://img.shields.io/badge/Lincense-Apache%202.0%20License-orange.svg?style=flat-square)](https://github.com/Fei-Sheng-Wu/AndroidDateTimePicker/blob/master/LICENSE.txt)\n\n\u003e A date \u0026 time picker component for Android. Light themed design, fullscreen picker dialog, and native Material components only. Support setting default selected date \u0026 time, and selection result callback handler. Support custom button icon, title text, and colors. Minimum dependency of SDK 5.0.\n\n## Dependencies\n\n**Min SDK** = 5.0\n\n## Main Features\n\n- [x] Date \u0026 time picker\n- [x] Default selected date \u0026 time\n- [x] Selection result callback listener\n- [x] Custom button icons, title text, and colors\n\n## Preview\n\n![DateTimePicker Select Date](https://github.com/Fei-Sheng-Wu/AndroidDateTimePicker/blob/b56714e055ce0a77c213b36f8919d3acb4591f90/Screenshot/DateTimePicker%20Select%20Date.png)\n![DateTimePicker Select Time](https://github.com/Fei-Sheng-Wu/AndroidDateTimePicker/blob/b56714e055ce0a77c213b36f8919d3acb4591f90/Screenshot/DateTimePicker%20Select%20Time.png)\n\n## How to Use\n\nIt is very simple to set up.\n\n```java\nDateTimePickerDialog selectDialog = new DateTimePickerDialog();\nselectDialog.setDefaultDateTime(Calendar.getInstance()); //Set default selected date \u0026 time.\nselectDialog.setOnResultsListener(new DateTimePickerDialog.OnResultsListener() {\n    @Override\n    public void onSuccess(Calendar date) {\n        //Selection result callback. Parameter \"date\" holds the selected date \u0026 time.\n    }\n});\ngetSupportFragmentManager().beginTransaction()\n    .setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN) //Set the transition animation when dialog opens.\n    .add(R.id.root_view, selectDialog) //Show dialog. \"R.id.root_view\" should be replaced by the ID of the activity's root view.\n    .addToBackStack(null) //Add dialog to back stack.\n    .commit();\n```\n\n(Optional) Add these to string.xmls to change the title text.\n\n```xml\n\u003cstring name=\"title_select_date\"\u003eSelect Date\u003c/string\u003e\n\u003cstring name=\"title_select_time\"\u003eSelect Time\u003c/string\u003e\n```\n\n(Optional) Add these to colors.xmls to change the colors.\n\n```xml\n\u003ccolor name=\"colorPrimary\"\u003e#FFFFFF\u003c/color\u003e\n\u003ccolor name=\"colorPrimaryDark\"\u003e#FFFFFF\u003c/color\u003e\n\u003ccolor name=\"colorAccent\"\u003e#000000\u003c/color\u003e\n\u003ccolor name=\"colorControl\"\u003e#EDEDED\u003c/color\u003e\n```\n\n(Optional) Add these drawables to the drawable directory to change button icons.\n\n|Drawable Name|Used For|Icon Size|\n|---|---|---|\n|ic_close_24.xml|Close picker dialog for canceling selection button. |24dp x 24dp|\n|ic_next_24.xml|Switch from date selection to time selection button.|24dp x 24dp|\n|ic_submit_24.xml|Submit selected result button.|24dp x 24dp|\n\n## License\n\nThis project is under the [Apache 2.0 License](https://github.com/Fei-Sheng-Wu/AndroidDateTimePicker/blob/master/LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffei-sheng-wu%2Fandroiddatetimepicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffei-sheng-wu%2Fandroiddatetimepicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffei-sheng-wu%2Fandroiddatetimepicker/lists"}