material-components / material-components-android

Modular and customizable Material Design UI components for Android
Apache License 2.0
16.36k stars 3.07k forks source link

[TimePicker] MaterialTimePicker without dialog #1799

Open ubuntudroid opened 4 years ago

ubuntudroid commented 4 years ago

Is your feature request related to a problem? Please describe. Date and time pickers sometimes need to be embedded in the UI rather than shown in dialogs - e.g. during an onboarding procedure where dialogs just don't work very well. However the MaterialTimePicker is just available in a dialog version. The old system TimePicker used to be available in an embeddable format as well.

Describe the solution you'd like Provide MaterialTimePicker and MaterialDatePicker as embeddable versions without the need to spawn a dialog.

Describe alternatives you've considered For now I will use the old system TimePicker, but it looks really old fashioned and can't be styled nicely.

Additional context N/A

bubenheimer commented 3 years ago

Can the Material Components team provide input whether providing non-dialog Time & Date widgets is on the near-future roadmap? The current design reminds me more of an old-school web platform where these widgets indeed tended to be standalone dialogs. I hope it will be possible to provide something more in line with the project's "modular UI components" objective.

mykola-dev commented 2 years ago

i can't believe this isn't an option. have to use 3rd party lib for such a simple thing