material-components / material-components/material-components-android

[MaterialDatePicker] Added Support for a Spinner Mode

Open
#1,264 7 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request Widget: DatePicker
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.

DatePickerSpinner

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:
Screen Shot 2020-05-01 at 11 48 03 AM

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.