{"id":20995130,"url":"https://github.com/blackboxvision/datetimepicker-edittext","last_synced_at":"2025-05-14T21:31:01.823Z","repository":{"id":45213932,"uuid":"77923536","full_name":"BlackBoxVision/datetimepicker-edittext","owner":"BlackBoxVision","description":"📅 A set of EditTexts with built-in support for Date and TimePicker's using Fragments","archived":false,"fork":false,"pushed_at":"2023-06-06T16:25:29.000Z","size":157,"stargazers_count":37,"open_issues_count":1,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T23:40:49.223Z","etag":null,"topics":["android","calendar","datetimepicker","edittext","java","library","timepicker"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/BlackBoxVision.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}},"created_at":"2017-01-03T14:21:24.000Z","updated_at":"2025-01-17T06:19:59.000Z","dependencies_parsed_at":"2024-01-23T17:41:52.036Z","dependency_job_id":"c16f6520-9199-42ee-aca7-9ffe448e014f","html_url":"https://github.com/BlackBoxVision/datetimepicker-edittext","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackBoxVision%2Fdatetimepicker-edittext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackBoxVision%2Fdatetimepicker-edittext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackBoxVision%2Fdatetimepicker-edittext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackBoxVision%2Fdatetimepicker-edittext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlackBoxVision","download_url":"https://codeload.github.com/BlackBoxVision/datetimepicker-edittext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254230818,"owners_count":22036248,"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","calendar","datetimepicker","edittext","java","library","timepicker"],"created_at":"2024-11-19T07:21:50.510Z","updated_at":"2025-05-14T21:30:59.500Z","avatar_url":"https://github.com/BlackBoxVision.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DateTimePicker EditText \n\u003e :calendar: A set of EditTexts with built-in support for Date and TimePicker's using Fragments\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-DateTimePickerEditText-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/5029) [![](https://jitpack.io/v/BlackBoxVision/datetimepicker-edittext.svg)](https://jitpack.io/#BlackBoxVision/datetimepicker-edittext)\n\n## Installation\n\nActually I don't have this library in **JCenter/Maven Central**, so if you want to use, follow the instructions. \n\n**Gradle**\n\n- Add it in your root build.gradle at the end of repositories:\n```gradle\nallprojects {\n    repositories {\n        ...\n        maven { \n\t    url \"https://jitpack.io\" \n        }\n    }\n}\n```\n\n- Add the dependency:\n```gradle\ndependencies {\n    implementation 'com.github.BlackBoxVision:datetimepicker-edittext:v0.5.0'\n}\n```\n\n**Maven**\n\n- Add this line to repositories section in pom.xml:\n```xml\n\u003crepositories\u003e\n    \u003crepository\u003e\n\t\u003cid\u003ejitpack.io\u003c/id\u003e\n\t\u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n    \u003c/repository\u003e\n\u003c/repositories\u003e\n```\n- Add the dependency:\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.BlackBoxVision\u003c/groupId\u003e\n    \u003cartifactId\u003edatetimepicker-edittext\u003c/artifactId\u003e\n    \u003cversion\u003ev0.5.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n**SBT**\n\n- Add it in your build.sbt at the end of resolvers:\n```sbt\n  resolvers += \"jitpack\" at \"https://jitpack.io\"\n```\n\n- Add the dependency:\n```sbt\n  libraryDependencies += \"com.github.BlackBoxVision\" % \"datetimepicker-edittext\" % \"v0.5.0\"\n```\n\n## Sample Usage\n\nIn your activity layout xml:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cLinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/activity_main\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:paddingBottom=\"@dimen/activity_vertical_margin\"\n    android:paddingLeft=\"@dimen/activity_horizontal_margin\"\n    android:paddingRight=\"@dimen/activity_horizontal_margin\"\n    android:paddingTop=\"@dimen/activity_vertical_margin\"\n    android:orientation=\"vertical\"\n    android:focusable=\"false\"\n    tools:context=\"io.blackbox_vision.sample.MainActivity\"\u003e\n\n    \u003cio.blackbox_vision.datetimepickeredittext.view.DatePickerEditText\n        android:id=\"@+id/datePickerEditText\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginBottom=\"8dp\"\n        android:hint=\"@string/select_date\"/\u003e\n\n    \u003cio.blackbox_vision.datetimepickeredittext.view.TimePickerEditText\n        android:id=\"@+id/timePickerEditText\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginBottom=\"8dp\"\n        android:hint=\"@string/select_time\"/\u003e\n\n    \u003candroid.support.design.widget.TextInputLayout\n        android:id=\"@+id/dateTextInputLayout\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginBottom=\"8dp\"\u003e\n\n        \u003cio.blackbox_vision.datetimepickeredittext.view.DatePickerInputEditText\n            android:id=\"@+id/datePickerInputEditText\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:hint=\"@string/select_date\"\n            app:minDate=\"01/01/1981\"\n            app:maxDate=\"01/01/2050\"\n            app:dateFormat=\"yyyy/MM/dd\"/\u003e\n\n    \u003c/android.support.design.widget.TextInputLayout\u003e\n\n    \u003candroid.support.design.widget.TextInputLayout\n        android:id=\"@+id/timeTextInputLayout\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\u003e\n\n        \u003cio.blackbox_vision.datetimepickeredittext.view.TimePickerInputEditText\n            android:id=\"@+id/timePickerInputEditText\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:hint=\"@string/select_time\"\n            app:timeFormat=\"HH:mm\"\n            app:is24HourView=\"true\"/\u003e\n\n    \u003c/android.support.design.widget.TextInputLayout\u003e\n\u003c/LinearLayout\u003e\n```\n\nThe available tags are the following ones:\n- **dateTimePicker:theme**: Reference to a custom theme related to the DatePicker or TimePicker dialog style\n- **dateTimePicker:minDate**: String, it must be a string date in the format 'dd/MM/yyyy' or if you want current date pass 'CR_DATE'\n- **dateTimePicker:maxDate**: String, it must be a string date in the format 'dd/MM/yyyy' or if you want current date pass 'CR_DATE'\n- **dateTimePicker:dateFormat**: String, it represents the format that the date will be shown in the EditText, the default is 'dd/MM/yyyy'\n- **dateTimePicker:timeFormat**: String, it represents the format that the time will be shown in the EditText, the default is 'HH:mm'\n- **dateTimePicker:is24HourView**: Boolean, it tells the TimePicker how to show it\n\nAnd in your Activity class\n\n```java\npublic final class MainActivity extends AppCompatActivity {\n\n    private DatePickerEditText datePickerEditText;\n    private TimePickerEditText timePickerEditText;\n\n    private DatePickerInputEditText datePickerInputEditText;\n    private TimePickerInputEditText timePickerInputEditText;\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n\n        datePickerEditText = (DatePickerEditText) findViewById(R.id.datePickerEditText);\n        timePickerEditText = (TimePickerEditText) findViewById(R.id.timePickerEditText);\n\n        datePickerInputEditText = (DatePickerInputEditText) findViewById(R.id.datePickerInputEditText);\n        timePickerInputEditText = (TimePickerInputEditText) findViewById(R.id.timePickerInputEditText);\n    }\n}\n```\n\n## License\n\nDistributed under the **MIT license**. See [LICENSE](https://github.com/BlackBoxVision/datetimepicker-edittext/blob/master/LICENSE.txt) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackboxvision%2Fdatetimepicker-edittext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackboxvision%2Fdatetimepicker-edittext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackboxvision%2Fdatetimepicker-edittext/lists"}