material-components / material-components/material-components-android
[MaterialDatePicker] [MaterialTimePicker] Provide a widget that allows the user to select a calendar date, and optionally a time
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 17.4k
- Fork
- 3.2k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Is your feature request related to a problem? Please describe.
I haven't been able to find a way to add a view to the MaterialDatePicker that will allow users to switch to time and vice versa. Not all user cases are the same and the current MaterialDatePicker and MaterialTimePicker are not helping me to achieve my user requirements. My app might have multiple date/time fields. These are represented by text field in a display state (not focusable - users can not type a date and/or time). The purpose is to minimize data entry errors and maximizes efficiency.
Describe the solution you'd like
- An inline date/time picker will be best. I know this not something that will happen overnight but this will be the preferable experience
OR - Expose the
HeaderToggleaccessory. This by default can be the switch from the calendar to input calendar or it can be styled and used to switch from the datepicker to the timepicker.
This screen below shows what I need to achieve from the design point of view.
Design Screen
Describe alternatives you've considered
Expose the neutral button in the fragment that hosts the picker. This will allow to switch from date to time and vice versa
Additional context
Provide a widget that allows the user to select a calendar date, and optionally a time.
iOS Screen
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Non vengono indicati file, test o punti di ingresso. Inizia esaminando le API esistenti di MaterialDatePicker e MaterialTimePicker, incluse le alternative HeaderToggle e neutral-button descritte qui. Per considerarlo completato sarebbero necessari un design concordato e un widget che supporti la selezione di una data di calendario con la selezione opzionale dell’ora e il passaggio dall’una all’altra.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- android, java
- Ambito
- design, mobile
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100