{"id":19299537,"url":"https://github.com/park-sm/parkdatetimepicker","last_synced_at":"2025-07-02T14:36:18.373Z","repository":{"id":104398896,"uuid":"537768013","full_name":"Park-SM/ParkDateTimePicker","owner":"Park-SM","description":"Android library for selecting date and time from BottomSheet UI.","archived":false,"fork":false,"pushed_at":"2023-07-09T09:04:26.000Z","size":308,"stargazers_count":5,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T10:31:48.260Z","etag":null,"topics":["android","android-library","bottomsheet","date","datepicker","datetimepicker","library","picker","picker-library","pickerview","time","timepicker"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/Park-SM.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-17T10:04:48.000Z","updated_at":"2024-01-30T16:23:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"ccb69c0a-5c64-4ab7-b02a-54b824799b05","html_url":"https://github.com/Park-SM/ParkDateTimePicker","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Park-SM/ParkDateTimePicker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Park-SM%2FParkDateTimePicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Park-SM%2FParkDateTimePicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Park-SM%2FParkDateTimePicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Park-SM%2FParkDateTimePicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Park-SM","download_url":"https://codeload.github.com/Park-SM/ParkDateTimePicker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Park-SM%2FParkDateTimePicker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263157354,"owners_count":23422600,"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-library","bottomsheet","date","datepicker","datetimepicker","library","picker","picker-library","pickerview","time","timepicker"],"created_at":"2024-11-09T23:11:59.659Z","updated_at":"2025-07-02T14:36:18.358Z","avatar_url":"https://github.com/Park-SM.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Generic badge](https://img.shields.io/badge/Platform-Android-green.svg)\u0026nbsp;\n![Generic badge](https://img.shields.io/badge/Repository-MavenCentral-blue.svg)\u0026nbsp;\n![Generic badge](https://img.shields.io/badge/Version-v1.1.0-red.svg)\u0026nbsp;\n![Generic badge](https://img.shields.io/badge/License-Apache2.0-3DB7CC.svg)\u0026nbsp;\n\n# ParkDateTimePicker\nAndroid library for selecting date and time from BottomSheet UI. **ParkDateTimePicker** is customizable so you can even specify your own language. If you think this library is useful, please press ⭐️ Star button at upside : )\n- [UI Design](https://github.com/Park-SM/ParkDateTimePicker#-ui-design)\n    - [Overview](https://github.com/Park-SM/ParkDateTimePicker#overview)\n    - [DatePicker clip](https://github.com/Park-SM/ParkDateTimePicker#datepicker-clip)\n    - [TimePicker clip](https://github.com/Park-SM/ParkDateTimePicker#timepicker-clip)\n    - [DateTimePicker clip](https://github.com/Park-SM/ParkDateTimePicker#datetimepicker-clip)\n- [How to use](https://github.com/Park-SM/ParkDateTimePicker#-how-to-use)\n- [About DatePicker](https://github.com/Park-SM/ParkDateTimePicker#-about-datepicker)\n    - [Basic usage](https://github.com/Park-SM/ParkDateTimePicker#basic-usage)\n    - [Options](https://github.com/Park-SM/ParkDateTimePicker#options)\n- [About TimePicker](https://github.com/Park-SM/ParkDateTimePicker#-about-timepicker)\n    - [Basic usage](https://github.com/Park-SM/ParkDateTimePicker#basic-usage-1)\n    - [Options](https://github.com/Park-SM/ParkDateTimePicker#options-1)\n- [About DateTimePicker](https://github.com/Park-SM/ParkDateTimePicker#-about-datetimepicker)\n    - [Basic usage](https://github.com/Park-SM/ParkDateTimePicker#basic-usage-2)\n    - [Options](https://github.com/Park-SM/ParkDateTimePicker#options-2)\n- [More Sample](https://github.com/Park-SM/ParkDateTimePicker/blob/develop/app/src/main/java/com/smparkworld/sample/MainActivity.kt)\n- [License](https://github.com/Park-SM/ParkDateTimePicker#-license)\n\u003cbr\u003e\n\n## # UI Design\n#### *Overview*\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd  align=\"center\"\u003eDatePicker\u003c/td\u003e\n        \u003ctd  align=\"center\"\u003eTimePicker\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003cimg width=\"330\" src=\"https://github.com/Park-SM/ParkDateTimePicker/assets/47319426/af7a4a5c-39a6-4a92-974a-ce377eea601f\"/\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg width=\"330\" src=\"https://github.com/Park-SM/ParkDateTimePicker/assets/47319426/a263e0c7-e361-4e8a-b0b3-20afec116d7e\"/\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n#### *DatePicker clip*\nhttps://github.com/Park-SM/ParkDateTimePicker/assets/47319426/426a9050-2552-4343-b25d-99deb7843c6d\n\n#### *TimePicker clip*\nhttps://github.com/Park-SM/ParkDateTimePicker/assets/47319426/88c98780-f1d8-403b-965f-3e2b385a5986\n\n#### *DateTimePicker clip*\nhttps://github.com/Park-SM/ParkDateTimePicker/assets/47319426/6bd073e7-666a-4769-87ab-d2ffc14f741c\n\n\u003cbr\u003e\n\n\n## # How to use\nAdd mavenCentral and implementation as below code.\n```groovy\n// build.gradle(:project)\nrepositories {\n    ....\n    mavenCentral()\n}\n\n// build.gradle(:app)\ndependencies {\n\n    implementation \"com.smparkworld.parkdatetimepicker:parkdatetimepicker:1.1.0\"\n}\n\n// ParkDateTimePicker use DataBinding.\n// build.gradle(:app)\nandroid {\n    ....\n    dataBinding {\n        enabled = true\n    }\n}\n```\n\u003cbr\u003e\n\n## # About DatePicker\nTo use the DatePicker, you have to set the `DateListener` using the `setDateListener(:DateListener)` function.\n#### *Basic usage*\n```kotlin\nParkDateTimePicker.builder(this)\n    .setDateListener { date -\u003e\n        ....\n    }\n    .show()\n```\n\n#### *Options*\n```kotlin\nParkDateTimePicker.builder(this)\n    .setTitle(\"Custom Title\")\n    .setDayOfWeekTexts(arrayOf(\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"))\n    .setResetText(\"Custom Reset\")\n    .setDoneText(\"Custom Done\")\n    .setPrimaryColorInt(ContextCompat.getColor(this, R.color.custom_primary))\n    .setHighLightColorInt(ContextCompat.getColor(this, R.color.custom_high_light))\n    .setMonthTitleFormatter { year, month -\u003e\n        \"${year}-${String.format(\"%02d\", month)}\"\n    }\n    .setDateResultFormatter { year, month, day -\u003e\n        \"${year}-${String.format(\"%02d\", month)}-${String.format(\"%02d\", day)}\"\n    }\n    .setDateListener { date -\u003e\n        ....\n    }\n    .show()\n```\n\u003cbr\u003e\n\n## # About TimePicker\nTo use the TimePicker, you have to set the `TimeListener` using the `setTimeListener(:TimeListener)` function.\n#### *Basic usage*\n```kotlin\nParkDateTimePicker.builder(this)\n    .setTimeListener { time -\u003e\n        ....\n    }\n    .show()\n\n```\n\n#### *Options*\n```kotlin\nParkDateTimePicker.builder(this)\n    .setTitle(\"Custom Title\")\n    .setAmPmTexts(arrayOf(\"CustomAM\", \"CustomPM\"))\n    .setResetText(\"Custom Reset\")\n    .setDoneText(\"Custom Done\")\n    .setPrimaryColorInt(ContextCompat.getColor(this, R.color.custom_primary))\n    .setHighLightColorInt(ContextCompat.getColor(this, R.color.custom_high_light))\n    .setTimeResultFormatter { amPm, hour, minute -\u003e\n        \"${amPm} ${String.format(\"%02d\", hour)}h ${String.format(\"%02d\", minute)}m\"\n    }\n    .setTimeListener { time -\u003e\n        ....\n    }\n    .show()\n```\n\u003cbr\u003e\n\n## # About DateTimePicker\nTo use the DateTimePicker, you have to set the `DateTimeListener` using the `setDateTimeListener(:DateTimeListener)` function.\n#### *Basic usage*\n```kotlin\nParkDateTimePicker.builder(this)\n    .setDateTimeListener { dateTime -\u003e\n        ....\n    }\n    .show()\n```\n\n#### *Options*\n```kotlin\nParkDateTimePicker.builder(this)\n    .setTitle(\"Custom Title\")\n    .setDayOfWeekTexts(arrayOf(\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"))\n    .setAmPmTexts(arrayOf(\"CustomAM\", \"CustomPM\"))\n    .setResetText(\"Custom Reset\")\n    .setDoneText(\"Custom Done\")\n    .setPrimaryColorInt(ContextCompat.getColor(this, R.color.custom_primary))\n    .setHighLightColorInt(ContextCompat.getColor(this, R.color.custom_high_light))\n    .setMonthTitleFormatter { year, month -\u003e\n        \"${year}-${String.format(\"%02d\", month)}\"\n    }\n    .setDateResultFormatter { year, month, day -\u003e\n        \"${year}-${String.format(\"%02d\", month)}-${String.format(\"%02d\", day)}\"\n    }\n    .setTimeResultFormatter { amPm, hour, minute -\u003e\n        \"${amPm} ${String.format(\"%02d\", hour)}h ${String.format(\"%02d\", minute)}m\"\n    }\n    .setDateTimeListener { dateTime -\u003e\n        ....\n    }\n    .show()\n```\n\u003cbr\u003e\n\n## # License\n```\nCopyright 2022 ParkSM\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpark-sm%2Fparkdatetimepicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpark-sm%2Fparkdatetimepicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpark-sm%2Fparkdatetimepicker/lists"}