question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[MaterialDatePicker] Added Support for a Spinner Mode

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:10
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
ruzicka1911commented, May 9, 2022

I came here because my real world users are working in the warehouses, where they need to enter expiration dates. The effectivity is worse when they use the new MaterialDatePicker versus the old one with spinners. Could you also add support for the spinners to new MaterialDatePicker. Thank you.

7reactions
mobiRiccommented, Mar 3, 2022

Came here to find that my issue already exists, but is almost 2 years old.

It was asked why one would prefer the old style:

  • I came here because my real world users are consistently entering incorrect dates of birth into a real world medical app. (the app was originally built with MaterialDatePicker)

This is direct User Experience that I’m seeing; and these users are having a very poor experience, so we are tossing this control from our app. Being a major fan of Material code, I’d much rather use this library than something else, but that is not an option.

tl;dr - the reason is that users don’t know how to use this control

Read more comments on GitHub >

github_iconTop Results From Across the Web

Materialdatepicker with a spinner style - android
1 Answer 1 ... For a slightly different dialog itself. Keep in mind to set dpd.getDatePicker().setCalendarViewShown(false); otherwise the regular ...
Read more >
Date pickers – Material Design 3
Date pickers can display past, present, or future dates relevant to a task; Clearly indicate important dates, such as current and selected days ......
Read more >
Android DatePicker with Examples - Tutlane
In anroid, the DatePicker supports a two types of modes, those are Calendar and Spinner to show the date details in our application....
Read more >
DatePicker - Android Developers
android.app.appsearch.observer. Overview. Interfaces. ObserverCallback. Classes. DocumentChangeInfo · ObserverSpec · ObserverSpec.Builder · SchemaChangeInfo.
Read more >
DatePicker Tutorial With Example In Android Studio
Below is an example code in which we set the mode to spinner for a date ... package example.abhiandroid.datepickerexample; import android.support.v7.app.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found