Android DatePicker shows unavailable months when using min/max limits -
i've found 1 other instance of issue on stackoverflow unanswered (last year), figured i'd give shot. (android datepicker/dialog displaying incorrect month/s using min/max date, actual image)
when setting mindate , maxdate of android datepicker, it'll show months unavailable within range of min , max date. i'll demonstrate issue following images:
when i'm @ mindate:
when i'm in between date limits:
when i'm @ maxdate:
the unavailable months (in case april , june) act min , max values in situation, going april, datepicker shoot 15th of may, or trying slide june move datepicker 22th of may.
is possible keep (unavailable) months hidden view, in testcase, selectable part date? keeping in mind that, interval between instance 29th of may , 5th of june, june has appear in list.
option 1. use android-times-square
and give in custom date range fades out unavailable dates, gives more visual representation too
calendar nextyear = calendar.getinstance(); nextyear.add(calendar.year, 1); calendarpickerview calendar = (calendarpickerview) findviewbyid(r.id.calendar_view); date today = new date(); calendar.init(today, nextyear.gettime()) .inmode(range);
Comments
Post a Comment