177 Commits

Author SHA1 Message Date
Material Design Team
b13d967f0b Automated g4 rollback of changelist 799921970
PiperOrigin-RevId: 799988158
2025-08-27 13:41:49 -07:00
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
Material Design Team
e69709f5fa [TimePicker][A11y] Add tooltip to MaterialTimePicker mode toggle button
Refactored the logic for retrieving the toggle button's icon and content description into separate methods and added a tooltip to the mode toggle button.

PiperOrigin-RevId: 797722507
2025-08-27 13:35:50 -07:00
Material Design Team
089372f249 [TimePicker][A11y] Add keyboard support to clock input mode
Enables focus on the `ClockFaceView` and implements `onKeyDown` to allow users to navigate between clock values using DPAD keys. DPAD_RIGHT/UP increments the selected value, while DPAD_LEFT/DOWN decrements it.

PiperOrigin-RevId: 796951982
2025-08-20 14:54:18 +00:00
pfthomas
dcfe2ee9ee [TimePicker] Default to text input mode in landscape
PiperOrigin-RevId: 775714779
2025-06-27 16:16:52 +00:00
pfthomas
b5aee6682c [TimePicker][a11y] Set accessibilityDelegate for time announcement when editing
Also set `hintText` to announce hour/minute with the number.

PiperOrigin-RevId: 771085617
2025-06-18 14:15:00 +00:00
pfthomas
2d73a5dca6 [TimePicker][a11y] Set accessibilityDelegate for time announcement when editing
PiperOrigin-RevId: 767673170
2025-06-05 18:41:20 +00:00
pfthomas
56a981ddc2 [TimePicker][i18n] Update string translations.
Resolves https://github.com/material-components/material-components-android/issues/4802

PiperOrigin-RevId: 766656496
2025-06-03 15:37:09 +00:00
ls9487
167451b532 [MaterialTimePicker] set time wrongly in TimeFormat.CLOCK_12H
Resolves https://github.com/material-components/material-components-android/pull/4495

GIT_ORIGIN_REV_ID=6f77987cc4d65033173a70c86d5ecf1e9ad1268e
PiperOrigin-RevId: 766649090
2025-06-03 15:35:46 +00:00
kendricku
960bb4cb82 [a11y][TimePicker] Include "hour" and "minute" in announcements. For example: "Not checked, Hour - 11'0 clock. double tap to select Hour".
PiperOrigin-RevId: 742718549
2025-04-07 14:29:38 +00:00
rightnao
37adad28af [Tokens] Update tokens to 16.0.2
PiperOrigin-RevId: 739249542
2025-03-24 15:27:25 +00:00
pekingme
67b6dcebe5 [Tokens] Upgraded to 15.0.26
PiperOrigin-RevId: 731761144
2025-03-03 19:50:32 +00:00
hunterstich
9f528510c3 [Translations] Updated string translations
PiperOrigin-RevId: 731461284
2025-03-03 19:49:49 +00:00
pekingme
c39dc388b3 [Tokens] Upgraded to version 15.0.12.
PiperOrigin-RevId: 730510849
2025-02-25 19:32:33 +00:00
Material Design Team
4ed648a71d [MaterialTimePicker][a11y] Fixing the Talkback focusability of the "Select time" label on the time picker component.
PiperOrigin-RevId: 729257174
2025-02-25 19:26:57 +00:00
pekingme
7c5dce0f82 [Tokens] Updated to 14.0.0.
PiperOrigin-RevId: 728471950
2025-02-20 15:36:11 +00:00
pekingme
9a2890c249 [Resources] Updated translated string resources.
Resolves https://github.com/material-components/material-components-android/issues/4553

PiperOrigin-RevId: 720282586
2025-01-28 19:47:24 +00:00
pubiqq
bc2fdeadaf [Internal] Prefer platform methods to compat ones
Resolves https://github.com/material-components/material-components-android/pull/4532

GIT_ORIGIN_REV_ID=180dec736f2521579e483317a4d537629d8f247b
PiperOrigin-RevId: 715494344
2025-01-15 18:06:07 +00:00
pubiqq
80593b2a4e [TimePicker] Fix number format on 24-hour dial
Resolves https://github.com/material-components/material-components-android/pull/4523

GIT_ORIGIN_REV_ID=dcee0b2865bd9c9512b581d34d95aac998cac6a0
PiperOrigin-RevId: 713018088
2025-01-08 18:06:19 +00:00
pekingme
4f7bf293ea [Tokens] Updated token outputs to v13.2.0 and integrated new AppBar tokens.
PiperOrigin-RevId: 703208208
2024-12-10 17:57:50 +00:00
pubiqq
c1c19c8b3a [Internal] Update targetApi suppressions in resources
Resolves https://github.com/material-components/material-components-android/pull/4308

GIT_ORIGIN_REV_ID=8016db9460e4e1013e56a50e541406ff356e2837
PiperOrigin-RevId: 702111281
2024-12-04 23:58:23 +00:00
pekingme
9fe362f8f3 [Timepicker] Fixed Japanese translation.
Resolves https://github.com/material-components/material-components-android/issues/3861

PiperOrigin-RevId: 688222395
2024-10-22 20:13:27 +00:00
kendricku
20ee1ed794 [A11y][Time Picker] Adjust talkback to include "minute" and "hour" for text input fields.
PiperOrigin-RevId: 676884936
2024-09-20 19:50:21 +00:00
pubiqq
b77824fcc7 [Internal] Remove pre-Lollipop resources
Resolves https://github.com/material-components/material-components-android/pull/4280

GIT_ORIGIN_REV_ID=88ee02b5c93b51a154503b7a1f1b85ddeea3cb57
PiperOrigin-RevId: 676472901
2024-09-20 19:49:20 +00:00
pekingme
47cbd7e81a [Tokens] Upgraded to 10.0.1
PiperOrigin-RevId: 676467444
2024-09-20 19:48:02 +00:00
pubiqq
23aca03255 [Internal] Remove pre-Lollipop checks
Resolves https://github.com/material-components/material-components-android/pull/4266

GIT_ORIGIN_REV_ID=1de7808e66dd6666c893217c76c7499afe2df6a3
PiperOrigin-RevId: 669688797
2024-09-03 13:31:29 +00:00
pekingme
87076dd20b [Tokens] Upgraded to 8.0.0.
PiperOrigin-RevId: 669673113
2024-09-03 13:28:26 +00:00
pekingme
9188b8f6ab [Tokens] Upgraded to 7.1.0.
PiperOrigin-RevId: 669087033
2024-08-30 18:49:53 +00:00
pekingme
b65df32b0f [Tokens] Upgraded to 7.0.0
PiperOrigin-RevId: 668133320
2024-08-28 22:34:40 +00:00
pekingme
8731cad96a [Tokens] Upgraded to v6.1.0.
PiperOrigin-RevId: 665569215
2024-08-21 17:24:43 +00:00
pekingme
da0b738679 [Tokens] Upgraded to v5.0.0.
PiperOrigin-RevId: 663358341
2024-08-16 17:33:16 +00:00
pfthomas
40cfb07e1f [TimePicker] Prevent setting wrong time while the clock is animating
PiperOrigin-RevId: 650636506
2024-07-09 15:43:36 +00:00
pubiqq
182a50714c [TimePicker] Prevent the accumulation of listeners in rotationAnimator
Resolves https://github.com/material-components/material-components-android/pull/3973

GIT_ORIGIN_REV_ID=1b09e58865abfdf91610da16919e7f4f28739c09
PiperOrigin-RevId: 634850525
2024-05-17 21:08:13 +00:00
dsn5ft
9b6ceac72a [i18n] Update string translations
PiperOrigin-RevId: 633623911
2024-05-14 17:16:18 +00:00
pubiqq
510881a469 [Internal] Stop using deprecated androidx.core.view.* methods
Resolves https://github.com/material-components/material-components-android/pull/4117

GIT_ORIGIN_REV_ID=dd157e8360c2511810496693cec1616fce578655
PiperOrigin-RevId: 632284856
2024-05-13 17:37:38 +00:00
kendricku
d04da7d51b [TimePicker] Fix color of unselected state in AM/PM picker.
Specs:  https://m3.material.io/components/time-pickers/specs
PiperOrigin-RevId: 631920571
2024-05-09 14:12:57 +00:00
pfthomas
9b09b693d9 [Tokens] Update tokens to v4.0.0
PiperOrigin-RevId: 626141198
2024-04-19 21:18:49 +00:00
pfthomas
d2831cbfe1 [TimePicker] Make ClockFaceView not focusable
Prevent keyboard navigation from unnecessarily focusing the clock face.

PiperOrigin-RevId: 620981338
2024-04-02 15:02:20 +00:00
pfthomas
4f21b95526 [TimePicker] Only clear hour/minute fields when a digit is entered
Fixes issue with keyboard navigation that unnecessarily clears the text.

PiperOrigin-RevId: 620286833
2024-04-02 14:56:19 +00:00
pekingme
28cc2441d0 [Tokens] Updated to version 2.3.4.
PiperOrigin-RevId: 610835532
2024-02-29 08:36:02 -08:00
pekingme
ee7b4bddb4 [Tokens] Added formatting to break long lines and differentiate different comments.
PiperOrigin-RevId: 605684816
2024-02-12 18:03:59 +00:00
pekingme
89212044a9 [Tokens] Updated to v0.213.
PiperOrigin-RevId: 603749766
2024-02-06 14:30:16 +00:00
pekingme
08d7ded67b [Tokens] Upgraded to v0.207.
PiperOrigin-RevId: 600947836
2024-01-24 21:05:53 +00:00
dsn5ft
198e08cf5e [i18n] Update string translations for checkbox, search, and sidesheet
PiperOrigin-RevId: 582397137
2023-11-14 20:04:14 +00:00
pekingme
4ccaaaa31d [Tokens] Upgraded to v0.203
PiperOrigin-RevId: 579928128
2023-11-08 15:12:21 +00:00
pekingme
637362d597 [Tokens] Upgraded to v0.195
PiperOrigin-RevId: 579905417
2023-11-06 20:27:15 +00:00
pekingme
0463c507d7 [Tokens] Upgraded to v0.185
PiperOrigin-RevId: 579904837
2023-11-06 20:26:18 +00:00
conradchen
a8307ef792 [Process] Update translated strings
PiperOrigin-RevId: 576679982
2023-10-26 20:38:39 +00:00
pekingme
bfee8a74d7 [Tokens] Upgraded to v0.175.
PiperOrigin-RevId: 572648883
2023-10-12 11:04:28 -07:00
pekingme
8204856dd4 [Token][Color] Upgraded to v0.170 for tonal surface colors.
PiperOrigin-RevId: 555230534
2023-08-09 19:03:25 +00:00