完全使用NumberPicker实现的时间选择器。
-- CasualiTimePicker是对 iTimePicker 的封装,CasualiTimePicker增加了模式的切换。
-- iTimePickers使用了多个NumberPicker组成 ,并管理数据的联动,显示和设置时间。
添加依赖
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.0x7A7A6572:CustomImageView:Tag'
}
布局文件中添加:
<cn.zzerx.itimepicker.CasualiTimePicker
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
部分api CasualiTimePicker --|
iTimePicker --|