savvisingh / DateRangePicker

Date Range Picker is a Calendar Picker View to show a Customized Date Range Picker with improved UI and functionality to add subtitles to the dates
Apache License 2.0
784 stars 160 forks source link

range will not reset itself, it will adapter user's selecting operation #29

Closed seelikes closed 6 years ago

seelikes commented 6 years ago

… by NestedScrollView

when CalendarPickerView was contained by NestedScorllView, it can only show its first child, this is one candidate solution.

seelikes commented 6 years ago

when we select dates in range mode, it is normal that we modify our selection from date to date. it's a better experience that the selected range adapt the user's change rather than reset itself.

seelikes commented 6 years ago

when selected date's distance to start and end is equal, set the selected date as new range's end rather than start. i think this is a better experience than set the selected date as the new range's end.

seelikes commented 6 years ago

solve that when we click a date before former start date, the new start date remains unselected. if we click the date of the border date, start or end, the other edge's date will be called with unselected, but the current one will not be called with unselected. this may not be the same performance as before, i think i will consider to restore the former performance if someone complains about this.

savvisingh commented 6 years ago

Hey there, can you create another pull request from a branch, so I can try the code before merging it?

seelikes commented 6 years ago

@savvisingh ok