中文 | English
A simple and beautiful date&time picker, supports a large area of custom UI, built-in date&time selection dialog, based on Google BottomSheetDialog, can be used directly.
or Download
Step 1. add JitPack repository
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Step 2. add Gradle
dependencies {
...
implementation 'com.google.android.material:material:1.1.0' //In order to prevent unnecessary dependency conflicts, you need to rely on the google material library yourself starting from 0.0.3
implementation 'com.github.loperSeven:DateTimePicker:$version'//Please see the jitpack logo at the top for the specific version, only supports androidx
}
DateTimePicker
How to use DateTimePicker
Pop-ups
How to use CardDatePickerDialog
Custom DateTimePicker UI
DateTimePicker custom
- fix issues 28
- fix issues 18
- fix issues 11
- fix issues 10
- fix issues 7
- add DateTimeController,Support UI 100% customization
- recode DateTimePicker,Control only UI
- add DateTimeConfig
- add ContextExt
- fix issues 4-CardDatePickerDialog.Builder all vars add @JvmField
- Fix the problem that the month is 0 when the maximum year is selected after setting the maximum year.
- Fix defaultDate/minDate/maxDate Interval conflict problem
- Optimize the monitoring callback code and use Kotlin features to make the callback more concise
eg:thanks yaolv7 provide Pull requests
- DateTimePicker class is changed to Kotlin
- The new unit label can be configured in the code
- Remove DateTimePicker callback monitoring non-essential fields
- Added CardDatePickerDialog cancel and confirm button text configuration
- Added CardDatePickerDialog cancel button callback listener
- Change the binding of CardDatePickerDialog to the builder
eg:This update has some changes to the original method and configuration, see details [ Use ]
-dontwarn com.loper7.date_time_picker.**
-keep class com.loper7.date_time_picker.**{*;}
Issues:Issues
Email:loper7ins@gmail.com
Copyright 2020 loperSeven
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.