Added ability to set date range for datetimepicker and minimum minute interval for time picker#30
Added ability to set date range for datetimepicker and minimum minute interval for time picker#30raymondlam wants to merge 7 commits into
Conversation
…lectable increment for minutes.
…ePicker. Implemented month limit.
Removed limit on min year must be greater than max year.
|
I'm looking for this functionallity as well, could this be merged? |
|
Why are not merged? |
|
It's a great feature. @flavienlaurent , are you going to merge it in the main project? |
|
It's certainly a great feature but there are lots of changes ;) |
|
@flavienlaurent , I'm ready to be a beta tester! |
|
Hello, |
|
date.setDateRange(YEAR, MONTH, DAY, YEAR + 1, MONTH, DAY); on this line i am getting this error, "The method setDateRange(int, int, int, int, int, int) is undefined for the type DatePickerDialog" What is a problem? please help me to solve this |
|
Hello, |
|
Any chance of having a min/max time for time picker to go along with the intervals? |
|
Hey, How can I access the the selected date and time fields from onDateSet() and onTimeSet() methods in my onCreate() method of MainActivity? |
Set the date range by calling: datePickerDialog.setDateRange(startYear, startMonth, startDay, endYear, endMonth, endDay);
Days outside this period will be disabled.
The minute interval restricts you to select every 1/5/10/15 etc minutes (defaults to 1).
The minute interval can be changed for the time picker by calling setMinutesInterval(val);