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

SingleDateAndTimePickerDialog more than 1 year #303

Open
boby1975 opened this issue Sep 18, 2020 · 1 comment
Open

SingleDateAndTimePickerDialog more than 1 year #303

boby1975 opened this issue Sep 18, 2020 · 1 comment

Comments

@boby1975
Copy link

Hi
How to set setMaxDate in SingleDateAndTimePickerDialog.Builder ?
Thanks

@Akhunzaada
Copy link
Contributor

@boby1975 The library currently supports date ranges of ±1 year only in both directions from the current date. To support more than 1 year, use separate picker for year available both from Builder class and XML.

From the examples:

new SingleDateAndTimePickerDialog.Builder(this)
                .setTimeZone(TimeZone.getDefault())
                .bottomSheet()
                .curved()
                .displayHours(false)
                .displayMinutes(false)
                .displayDays(false)
                .displayMonth(true)
                .displayDaysOfMonth(true)
                .displayYears(true)
                .defaultDate(defaultDate)
                .display();

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