material-components / material-components/material-components-android
[MaterialDatePicker] Added Support for a Spinner Mode
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
### Context:
One of the modes supported from the older AppCompat Date Pickers was a Spinner mode.
This mode allowed users to use a set of dialers/spinners to select individual year/month/day directly.

Source: https://developer.android.com/guide/topics/ui/controls/pickers
It would be great to have `MaterialDatePicker` support such a mode, to align with use cases where it because difficult for a user to input an exact date, without having to scroll back in the Calendar View or Input a Text Entry Field.
### Example Use Case:
Is a user wants to select a particular month, from a given range of months:

In this example, if the user wants to select `March 2018`, having a spinner to do so, would lead to a faster experience than the Calendar View.
**Describe alternatives you've considered**
The alternative is to use the old `DatePickerDialog` which has support for the Spinner Mode.
**Additional context**
Source: https://developer.android.com/guide/topics/ui/controls/pickers
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing MaterialDatePicker with the older AppCompat DatePickerDialog and the Android picker guidance linked in the issue. The work is complete when MaterialDatePicker supports a spinner mode that lets users select the year, month, and day directly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100