一个Android Material 日期范围选择器,基于wdullaers MaterialDateTimePicker。
Credit to the original amazing material date picker library by wdullaer - https://github.com/wdullaer/MaterialDateTimePicker
Date Picker | Time Picker |
| |
步入正题:日期范围选择器 MaterialDateRangePicker
Update
-Added Time Range Picker
Date Selection
Time Selection
Support for Android 4.0 and up.
From the original library documentation -
You may also add the library as an Android Library to your project. All the library files live inlibrary.
Using the Pickers
- Implement anOnDateSetListenerorOnTimeSetListener
- Create a `DatePickerDialogusing the supplied factory
Implement anOnDateSetListener
In order to receive the date set in the picker, you will need to implement theOnDateSetListenerinterfaces. Typically this will be theActivityorFragmentthat creates the Pickers.
or
Implement anOnTimeSetListener
In order to receive the time set in the picker, you will need to implement theOnTimeSetListenerinterfaces. Typically this will be theActivityorFragmentthat creates the Pickers.
地址:https://github.com/borax12/MaterialDateRangePicker