{"id":22661930,"url":"https://github.com/koji-1009/chronodialogpreference","last_synced_at":"2025-10-19T20:06:59.253Z","repository":{"id":102989332,"uuid":"150923392","full_name":"koji-1009/ChronoDialogPreference","owner":"koji-1009","description":"Time picker dialog preference and Date picker dialog preference.","archived":false,"fork":false,"pushed_at":"2019-12-23T12:59:37.000Z","size":184,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-11T05:35:35.734Z","etag":null,"topics":["android","datepicker","dialogpreference","gradle","mit-license","picker-dialog-preference","timepicker"],"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/koji-1009.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,"zenodo":null}},"created_at":"2018-09-30T02:47:11.000Z","updated_at":"2022-10-21T07:08:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f852519-ce1b-41ac-b63d-5ee0f11cea6b","html_url":"https://github.com/koji-1009/ChronoDialogPreference","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/koji-1009/ChronoDialogPreference","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji-1009%2FChronoDialogPreference","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji-1009%2FChronoDialogPreference/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji-1009%2FChronoDialogPreference/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji-1009%2FChronoDialogPreference/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koji-1009","download_url":"https://codeload.github.com/koji-1009/ChronoDialogPreference/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji-1009%2FChronoDialogPreference/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279897705,"owners_count":26240828,"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-19T02:00:07.647Z","response_time":64,"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","datepicker","dialogpreference","gradle","mit-license","picker-dialog-preference","timepicker"],"created_at":"2024-12-09T11:27:20.227Z","updated_at":"2025-10-19T20:06:59.248Z","avatar_url":"https://github.com/koji-1009.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChronoDialogPreference\n\n[![](https://jitpack.io/v/koji-1009/ChronoDialogPreference.svg)](https://jitpack.io/#koji-1009/ChronoDialogPreference)\n\nTime picker dialog preference and Date picker dialog preference.\n\n## Gradle\n\nNOTE: 2.x only supports Jetpack. If you use appcompat 1.x which is almost stable is the way to go.\n\nStep1. Add it in your root build.gradle at the end of repositories:\n\n```groovy\nallprojects {\n    repositories {\n        maven { url 'https://jitpack.io' } // Add this line\n    }\n}\n```\n\nStep2. Add the dependency\n\n```groovy\ndependencies {\n    implementation 'com.github.koji-1009:ChronoDialogPreference:x.y.z'\n}\n```\n\n## How to use\n\nAdd `TimeDialogPreference` or `DateDialogPreference` to your preference's xml. See demo app.\n\n```xml\n\u003cPreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\u003e\n\n    \u003ccom.dr1009.app.chronodialogpreference.TimeDialogPreference\n        android:defaultValue=\"01:10\"\n        android:key=\"test1\"\n        android:title=\"Time Test\"\n        app:customFormat=\"HH-MM\"       // (optional) custom SimpleDateFormat pattern instead of system default\n        app:force12HourMode=\"true\"     // (optional) force 12 hour mode (AM/PM) instead of system default\n        app:force24HourMode=\"false\" /\u003e // (optional) force 24 hour mode (not AM/PM) instead of system default\n\n    \u003ccom.dr1009.app.chronodialogpreference.DateDialogPreference\n        android:defaultValue=\"2000.1.1\"\n        android:key=\"test2\"\n        android:title=\"Date Test\"\n        app:customFormat=\"dd.MM.yyyy\" // (optional) custom SimpleDateFormat pattern instead of system default\n        app:maxDate=\"2020-1-1\"        // (optional) set Max Date to select on Calendar\n        app:minDate=\"1970-1-1\" /\u003e     // (optional) set Min Date to select on Calendar\n\u003c/PreferenceScreen\u003e\n```\nThen, extend 'ChronoPreferenceFragment' instead of 'PreferenceFragment'. \n\n```\nclass SettingsFragment : ChronoPreferenceFragment() {\n\n    override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {\n        setPreferencesFromResource(R.xml.pref_chrono, rootKey)\n    }\n}\n```\n\n## License\n\n```\nMIT License\n\nCopyright (c) 2018-2019 Koji Wakamiya, Serhii Yolkin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoji-1009%2Fchronodialogpreference","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoji-1009%2Fchronodialogpreference","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoji-1009%2Fchronodialogpreference/lists"}