SundeepK/CompactCalendarView

Enhancement : Date range selection

SharathKudikyala opened this issue · 8 comments

Would be the best one, If you could add date range selection too.

Thanks for the issue, I saw this date range feature recently and was thinking about raising an issue. Perhaps an xml setting which allows you to put the calendar in date range mode. The other alternative is to have a press and hold feature. But I think it would be kind of obstructive since the user could be pressing and holding a day for swiping.

You mean , this library is having range selection feature.

Not yet, I was describing how we can implement it.

If you see this time square library , he has given different modes of selection , dont mind please check this link.
https://github.com/square/android-times-square

Is this still in the pipeline? I have managed to be able to select a date range by modifying the current library however I am having trouble working out how to display this to the user. At the moment the user can select the first date, then the second date with no indication that they have selected a date range, only the print out in the console tells me i have done so. Would some indicator like this be possible? Where the range of selected dates are slightly highlighted.
screen shot 2017-06-06 at 15 17 30

I always like the idea of a long press to select a day to put it in this mode. Then when you select another day it gets highlighted like above with some custom color. That calendar is looking very nice!

Hi, if someone still needs something similiar, I did a fork to achieve this. @SundeepK if you like it we can merge it to your master. This is not an elegant solution but it works. Here how it looks:
date-range-example

azwar commented

How about improving Event class, by adding startDate and endDate to the constructor. This class will be used for date range mark.