I used a dynamic minimum and maximum date/time for the picker
setting up the .defaultDate(minDate) so that the picker is showing the dynamic minimum date
when I tried to get the displayed date by using picker.date.time at this point date doesn't matches with the minimum time I have set before and getting empty string, cz .addOnDateChangedListener wasn't called, from where I get the diplayed
Present situation
I have solved it manually. But I hope it should be into the library.
I would like to add another enhancement as well which is, reduce the items into individual picker according to it's actual count of picker.setStepMinutes(30). (i.e. I used 30 as steps and I would expect 2 items only into the minute list, I wouldn't expect ["00", "30"] more than 2 into the list. Assume, step = 15, then it should be = ["00","15","30","${c.add(Calender.HOUR, 1)}"] or something like that)
That's all, Thanks
Scenario:
.defaultDate(minDate)
so that the picker is showing the dynamic minimum datepicker.date.time
at this point date doesn't matches with the minimum time I have set before and getting empty string, cz.addOnDateChangedListener
wasn't called, from where I get thediplayed
Present situation I have solved it manually. But I hope it should be into the library. I would like to add another enhancement as well which is, reduce the items into individual picker according to it's actual count of
picker.setStepMinutes(30)
. (i.e. I used 30 as steps and I would expect2
items only into the minute list, I wouldn't expect["00", "30"]
more than2
into the list. Assume,step = 15
, then it should be =["00","15","30","${c.add(Calender.HOUR, 1)}"]
or something like that) That's all, Thanks