中文 | English
DateTimePicker 一个简约、漂亮的日期时间选择器,支持大面积自定义UI,内置日期时间选择弹窗,基于 Google BottomSheetDialog,可直接使用。
或者 点击下载
Step 1. 添加 JitPack repository
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Step 2. 添加 Gradle依赖
dependencies {
...
implementation 'com.google.android.material:material:1.1.0' //为了防止不必要的依赖冲突,0.0.3开始需要自行依赖google material库
implementation 'com.github.loperSeven:DateTimePicker:$version'//具体版本请看顶部jitpack标识,仅支持androidx
}
日期时间选择控件
DateTimePicker 使用说明
卡片弹窗
CardDatePickerDialog 使用说明
- DateTimePicker类变更为kotlin编写
- 新增单位标签可在代码内配置
- 移除DateTimePicker回调监听非必要字段
- 新增CardDatePickerDialog取消、确定按钮文字配置
- 新增CardDatePickerDialog取消按钮回调监听
- 变更CardDatePickerDialog监听绑定至builder内
eg:此次更新对原有方法及配置有一定改动,详情查看 [ 如何使用 ]
-dontwarn com.loper7.date_time_picker.**
-keep class com.loper7.date_time_picker.**{*;}
Issues:Issues
邮箱:[email protected]
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.