Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Previous dates not available #269

Open
karanjhinga opened this issue Apr 6, 2020 · 2 comments
Open

Previous dates not available #269

karanjhinga opened this issue Apr 6, 2020 · 2 comments

Comments

@karanjhinga
Copy link

Previous dates are not visible.

  • Tried setting mustBeFuture to false still no effect.
  • setting cyclic adds future dates but not the previous days
@karanjhinga
Copy link
Author

This screenshot might help
Screenshot_2020-04-06-12-02-32-497

@Akhunzaada
Copy link
Contributor

Akhunzaada commented Nov 6, 2020

@karanjhinga The library currently supports date ranges of ±1 year only in both directions from the current date. In your case current date was 06.04.2020 and -1 year in past ended on day 08.04.19.

Also, since the picker is circular, after the last day of previous year, i.e. 08.04.19 you will see the previous day as 05.04.21 which is part of +1 year.

Solution: Use a separate Year picker available both from Builder class and XML.

Akhunzaada added a commit to Akhunzaada/SingleDateAndTimePicker that referenced this issue Nov 6, 2020
Other florent37#306, florent37#303, florent37#269, florent37#290
The issues were mainly caused because of incorrect retrieving of today item index.
Optimized today item index search on scroll.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants