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 @ mindate

when i'm in between date limits:

in between dates

when i'm @ maxdate:

at 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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -