CompactCalendarView icon indicating copy to clipboard operation
CompactCalendarView copied to clipboard

Enhancement : Date range selection

Open SharathKudikyala opened this issue 9 years ago • 8 comments

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

SharathKudikyala avatar Aug 02 '16 07:08 SharathKudikyala

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.

SundeepK avatar Aug 02 '16 09:08 SundeepK

You mean , this library is having range selection feature.

SharathKudikyala avatar Aug 02 '16 10:08 SharathKudikyala

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

SundeepK avatar Aug 02 '16 11:08 SundeepK

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

SharathKudikyala avatar Aug 02 '16 11:08 SharathKudikyala

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

stoddayy avatar Jun 06 '17 14:06 stoddayy

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!

SundeepK avatar Jun 08 '17 14:06 SundeepK

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

GGLabCenter avatar Dec 04 '17 13:12 GGLabCenter

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

azwar avatar Sep 30 '19 08:09 azwar