9 Commits

Author SHA1 Message Date
pfthomas
d2cce659d1 [TimePicker][a11y] Error handling update
- properly show the chip background color when selected
- add error state with message when the hour/minute is incorrect, giving the user a visual feedback instead of just preventing inputting an incorrect value
- add vibration and beep on error or max length reached

PiperOrigin-RevId: 799921970
2025-08-27 13:41:00 -07:00
pfthomas
7f1def6d3c [MaterialTimePicker] Limit 24h input validation to 23
Resolves https://github.com/material-components/material-components-android/issues/3149

PiperOrigin-RevId: 501869529
2023-01-17 15:14:41 +00:00
pfthomas
0c204b8212 [MaterialTimePicker] Fix NumberFormatException
PiperOrigin-RevId: 482810027
2022-10-21 16:31:08 +00:00
pfthomas
ee19b01e2e [MaterialTimePicker][a11y] Update hour content description for 24h clock
PiperOrigin-RevId: 464069391
2022-08-04 13:52:19 -04:00
pfthomas
cbc0711ca3 [MaterialTimePicker][24H Redesign] 2-ring support for 24H clock
Resolves https://github.com/material-components/material-components-android/issues/1450

This replaces the current implementation of the 24H clock mode from 1 ring to 2 rings.
The 24H picker now also defaults to text input mode.

PiperOrigin-RevId: 463652374
2022-07-28 17:42:05 -04:00
pfthomas
85a44054f3 [MaterialTimePicker] Add setters for hour and minute
Resolves https://github.com/material-components/material-components-android/issues/2515

PiperOrigin-RevId: 428563049
2022-02-15 19:24:16 +00:00
marianomartin
c0be2c0cb1 [MaterialTimePicker] Documented hour and minutes ranges
PiperOrigin-RevId: 331209662
2020-09-15 09:20:55 -07:00
marianomartin
a543032c99 [TimePicker] Support formatting the numbers depending on the configuration locale
PiperOrigin-RevId: 327666353
2020-08-20 16:47:25 -04:00
marianomartin
cd6b062519 [TimePicker] Added a TimePicker component
This should be considered a pre-alpha of timepicker.
Try the component today, on the latest snapshot:

https://github.com/material-components/material-components-android/blob/master/docs/using-snapshot-version.md

The initial API offers feature parity with android.app.TimePickerDialog

Resolves https://github.com/material-components/material-components-android/issues/690

PiperOrigin-RevId: 318879238
2020-06-29 16:24:46 -04:00