{"id":18663801,"url":"https://github.com/lopspower/lazydatepicker","last_synced_at":"2025-10-24T01:05:16.069Z","repository":{"id":144529095,"uuid":"139847385","full_name":"lopspower/LazyDatePicker","owner":"lopspower","description":"LazyDatePicker an alternative to the native Android Date Picker 📅","archived":false,"fork":false,"pushed_at":"2021-05-31T15:55:29.000Z","size":585,"stargazers_count":373,"open_issues_count":5,"forks_count":42,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T22:10:03.157Z","etag":null,"topics":["android","datepicker","lazydatepicker"],"latest_commit_sha":null,"homepage":"","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/lopspower.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"lopspower","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-07-05T12:37:42.000Z","updated_at":"2025-02-14T14:51:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"62d22bdd-01b0-4e57-a927-d745ff1ce447","html_url":"https://github.com/lopspower/LazyDatePicker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lopspower%2FLazyDatePicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lopspower%2FLazyDatePicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lopspower%2FLazyDatePicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lopspower%2FLazyDatePicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lopspower","download_url":"https://codeload.github.com/lopspower/LazyDatePicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595335,"owners_count":20963943,"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","datepicker","lazydatepicker"],"created_at":"2024-11-07T08:19:50.627Z","updated_at":"2025-10-24T01:05:15.974Z","avatar_url":"https://github.com/lopspower.png","language":"Java","funding_links":["https://github.com/sponsors/lopspower"],"categories":[],"sub_categories":[],"readme":"LazyDatePicker\n=================\n\n\u003cimg src=\"/preview/preview_2.gif\" alt=\"sample\" title=\"sample\" width=\"257\" height=\"379\" align=\"right\" vspace=\"50\" /\u003e\n\n[![Platform](https://img.shields.io/badge/platform-android-green.svg)](http://developer.android.com/index.html)\n[![API](https://img.shields.io/badge/API-16%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=16)\n[![Maven Central](https://img.shields.io/maven-central/v/com.mikhaellopez/lazydatepicker.svg?label=Maven%20Central)](https://search.maven.org/artifact/com.mikhaellopez/lazydatepicker)\n\u003cbr\u003e\n[![Android Weekly](https://img.shields.io/badge/Android%20Weekly-%23317-orange.svg)](https://androidweekly.net/issues/issue-317)\n[![Twitter](https://img.shields.io/badge/Twitter-@LopezMikhael-blue.svg?style=flat)](http://twitter.com/lopezmikhael)\n\nThis is an Android project to offer an alternative to the native Android Date Picker.\n\n\u003ca href=\"https://play.google.com/store/apps/details?id=com.mikhaellopez.lopspower\"\u003e\n  \u003cimg alt=\"Android app on Google Play\" src=\"https://developer.android.com/images/brand/en_app_rgb_wo_45.png\" /\u003e\n\u003c/a\u003e\n\nUSAGE\n-----\n\nTo make a lazy date picker add LazyDatePicker in your layout XML and add LazyDatePicker library in your project or you can also grab it via Gradle:\n\n```groovy\nimplementation 'com.mikhaellopez:lazydatepicker:1.1.0'\n```\n\nXML\n-----\n\n```xml\n\u003ccom.mikhaellopez.lazydatepicker.LazyDatePicker\n    android:id=\"@+id/lazyDatePicker\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    app:ldp_text_color=\"@color/primary\"\n    app:ldp_hint_color=\"@color/accent\"\n    app:ldp_date_format=\"mm-dd-yyyy\" /\u003e\n```\n\nYou must use the following properties in your XML to change your LazyDatePicker.\n\n| Properties              | Type                     | Default    |\n| ----------------------- | -------------------------| ---------- |\n| `app:ldp_text_color`    | color                    | BLACK      |\n| `app:ldp_hint_color`    | color                    | GRAY       |\n| `app:ldp_date_format`   | mm-dd-yyyy or dd-mm-yyyy | mm-dd-yyyy |\n| `app:ldp_show_full_date`| boolean                  | true       |\n\nKOTLIN\n-----\n\n```kotlin\nlazyDatePicker.setDateFormat(LazyDatePicker.DateFormat.MM_DD_YYYY)\nlazyDatePicker.setMinDate(minDate)\nlazyDatePicker.setMaxDate(maxDate)\n\n// The date when is selected\nlazyDatePicker.setOnDatePickListener { dateSelected -\u003e\n    //...\n}\n\n// True or false when date is selected\nlazyDatePicker.setOnDateSelectedListener { dateSelected -\u003e\n    //...\n}\n```\n\nJAVA\n-----\n\n```java\nLazyDatePicker lazyDatePicker = findViewById(R.id.lazyDatePicker);\nlazyDatePicker.setDateFormat(LazyDatePicker.DateFormat.MM_DD_YYYY);\nlazyDatePicker.setMinDate(minDate);\nlazyDatePicker.setMaxDate(maxDate);\n\nlazyDatePicker.setOnDatePickListener(new LazyDatePicker.OnDatePickListener() {\n    @Override\n    public void onDatePick(Date dateSelected) {\n        //...\n    }\n});\n\nlazyDatePicker.setOnDateSelectedListener(new LazyDatePicker.OnDateSelectedListener() {\n    @Override\n    public void onDateSelected(Boolean dateSelected) {\n        //...\n    }\n});\n```\n\n[LOCAL DATE](https://github.com/JakeWharton/ThreeTenABP)\n-----\n\nYou can used `LazyLocalDatePicker` instead of `LazyDatePicker` to have all method with `LocalDate` instead of `Date`.\n\n### XML:\n\n```xml\n\u003ccom.mikhaellopez.lazydatepicker.LazyLocalDatePicker\n    android:id=\"@+id/lazyDatePicker\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    app:ldp_text_color=\"@color/primary\"\n    app:ldp_hint_color=\"@color/accent\"\n    app:ldp_date_format=\"mm-dd-yyyy\" /\u003e\n```\n\n### KOTLIN:\n\n```kotlin\nlazyLocalDatePicker.setDateFormat(LazyDatePicker.DateFormat.MM_DD_YYYY)\nlazyLocalDatePicker.setMinLocalDate(minDate)\nlazyLocalDatePicker.setMaxLocalDate(maxDate)\n\n// The localdate when is selected\nlazyLocalDatePicker.setOnLocalDatePickListener { localDateSelected -\u003e\n    //...\n}\n\n// True or false when date is selected\nlazyLocalDatePicker.setOnLocalDateSelectedListener { dateSelected -\u003e\n    //...\n}\n```\n\nOVERRIDE\n-----\n\nYou can override day, month \u0026 year if you want like this in your `strings.xml`:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cresources xmlns:tools=\"http://schemas.android.com/tools\"\u003e\n    \u003cstring name=\"ldp_day\" tools:override=\"true\"\u003eD\u003c/string\u003e\n    \u003cstring name=\"ldp_month\" tools:override=\"true\"\u003eM\u003c/string\u003e\n    \u003cstring name=\"ldp_year\" tools:override=\"true\"\u003eY\u003c/string\u003e\n\u003c/resources\u003e\n```\n\nYou can also change the design of the picker by changing the dimensions like this in your `dimens.xml`:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cresources xmlns:tools=\"http://schemas.android.com/tools\"\u003e\n    \u003cdimen name=\"lazy_date_picker_width_case\" tools:override=\"true\"\u003e12dp\u003c/dimen\u003e\n    \u003cdimen name=\"lazy_date_picker_height_focus\" tools:override=\"true\"\u003e2.5dp\u003c/dimen\u003e\n    \u003cdimen name=\"lazy_date_picker_width_margin\" tools:override=\"true\"\u003e1dp\u003c/dimen\u003e\n    \u003cdimen name=\"lazy_date_picker_width_space\" tools:override=\"true\"\u003e6dp\u003c/dimen\u003e\n\u003c/resources\u003e\n```\n\nAnd to finish you can also completely redefine the layout by keeping the same name `layout_lazy_date_picker.xml` and keep all the ids. You can find the default one here: [**layout_lazy_date_picker.xml**](/lazydatepicker/src/main/res/layout/layout_lazy_date_picker.xml)\n\nSUPPORT ❤️\n-----\n\nFind this library useful? Support it by joining [**stargazers**](https://github.com/lopspower/LazyDatePicker/stargazers) for this repository ⭐️\n\u003cbr/\u003e\nAnd [**follow me**](https://github.com/lopspower?tab=followers) for my next creations 👍\n\nLICENCE\n-----\n\nLazyDatePicker by [Lopez Mikhael](http://mikhaellopez.com/) is licensed under a [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flopspower%2Flazydatepicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flopspower%2Flazydatepicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flopspower%2Flazydatepicker/lists"}