65 Commits

Author SHA1 Message Date
pekingme
14fa66a2a9 [TimePicker] Integrated M3 tokens.
PiperOrigin-RevId: 493059854
2022-12-05 15:13:23 -05:00
pubiqq
6d956edcb9 [MaterialTimePicker] Fix divider alignment on the clock display
Resolves https://github.com/material-components/material-components-android/pull/2952

GIT_ORIGIN_REV_ID=e71f2c67f95008387d999155da65f1b4c5644fb8
PiperOrigin-RevId: 479329867
2022-10-06 17:54:35 +00:00
rightnao
7c56473a58 [Translations] Update string translations
PiperOrigin-RevId: 472531245
2022-09-08 13:25:10 -04:00
pubiqq
0dbea2df1a [MaterialTimePicker] Fix text appearance on the clock display
Resolves https://github.com/material-components/material-components-android/pull/2921

GIT_ORIGIN_REV_ID=4b00dddc1a6eac897de71cefa7f45a88113353cf
Co-authored-by: paulfthomas
PiperOrigin-RevId: 470753559
2022-08-29 10:46:43 -07:00
pubiqq
60bc025aa9 [TimePicker] Use a single layout for time input
Resolves https://github.com/material-components/material-components-android/pull/2908

GIT_ORIGIN_REV_ID=8feed25d0f0bb4d83a04304250772e9fbed0ae6a
PiperOrigin-RevId: 468529532
2022-08-19 11:00:32 -04:00
pubiqq
16edbb986b [MaterialTimePicker] Fix text and cursor alignment on the clock display
Resolves https://github.com/material-components/material-components-android/pull/2834
Resolves https://github.com/material-components/material-components-android/issues/2832

GIT_ORIGIN_REV_ID=dbd966e3fbf8161aaea9389b14adc178bbbe7aad
Co-authored-by: paulfthomas
PiperOrigin-RevId: 468005512
2022-08-17 14:57:41 -04:00
pubiqq
b3acd17ee4 [MaterialTimePicker] Fix TimePicker appearance for RTL
Resolves https://github.com/material-components/material-components-android/pull/2837
Resolves https://github.com/material-components/material-components-android/issues/2835
Resolves https://github.com/material-components/material-components-android/issues/2836

GIT_ORIGIN_REV_ID=2fa54f683b263c61933469f2bca1cdf81dbddeed
Co-authored-by: paulfthomas
PiperOrigin-RevId: 466986098
2022-08-12 14:59:33 -04:00
pfthomas
ee19b01e2e [MaterialTimePicker][a11y] Update hour content description for 24h clock
PiperOrigin-RevId: 464069391
2022-08-04 13:52:19 -04:00
pfthomas
e9fc0a033a [MaterialTimePicker][a11y] Make Clock text scale with system font size
PiperOrigin-RevId: 464069311
2022-08-04 13:51:37 -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
pekingme
3fdfb6e230 [I18n] Updated translated strings. We know how to say "Cancel" now :)
PiperOrigin-RevId: 454915686
2022-06-14 12:36:12 -07:00
Material Design Team
703249d872 [MaterialTimePicker] Properly align text vertically in MaterialTimePicker on S+.
PiperOrigin-RevId: 448541243
2022-05-13 15:01:43 -04:00
pekingme
269830e94e [Shape][TimePicker] Clean up shape appearance hardcoded in layout files.
PiperOrigin-RevId: 448297165
2022-05-12 17:21:53 -04:00
pfthomas
f302da7401 [TimePicker] Migrate to new shape system
PiperOrigin-RevId: 446302694
2022-05-04 18:26:34 -04:00
dsn5ft
8c775cb418 [i18n][Date/Time Picker] Update date and time picker translation strings
Resolves https://github.com/material-components/material-components-android/issues/2655
Resolves https://github.com/material-components/material-components-android/pull/2656

PiperOrigin-RevId: 445930808
2022-05-02 11:44:04 -04:00
pubiqq
7109aa4b8b [i18n][Date/Time Picker] Use regular strings instead of @android:string/* which can have translation issues
Resolves https://github.com/material-components/material-components-android/issues/2655
Resolves https://github.com/material-components/material-components-android/pull/2656

PiperOrigin-RevId: 444574063
2022-04-26 12:02:43 -04:00
conradchen
431e291b01 [Translation] Update string translations
PiperOrigin-RevId: 443191056
2022-04-20 17:19:02 -04:00
pfthomas
5b78bf4896 [MaterialTimePicker][a11y] Fix label for hour/minute EditTexts.
PiperOrigin-RevId: 443080572
2022-04-20 13:39:25 -04:00
pfthomas
f9914da4e9 [TimePicker][a11y] Fix Switch Access can't reach clock items
PiperOrigin-RevId: 425684600
2022-02-01 13:56:37 -08:00
conradchen
841fe974f0 [M3][TimePicker] Unify the theme/style names of time pickers
Renames all Material3.TimePicker.* to Material3.MaterialTimePicker.*.

PiperOrigin-RevId: 402844038
2021-10-13 16:39:56 -04:00
conradchen
cde684ab42 [DatePicker][TimePicker] Replace confirm button strings
On certain Android devices it seems the framework string @android:string/ok is not available. Replaces the usage of the strings with Material specific strings.

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

PiperOrigin-RevId: 400814492
2021-10-05 09:05:36 -04:00
conradchen
a1d09aca2e [M3][TimePicker] Create M3 styles
PiperOrigin-RevId: 392670393
2021-08-24 15:49:01 -04:00
conradchen
2dfa3d6906 [TimePicker] Clean-up TextApprearance overriding
1. Creates a new attribute so we don't have to override existing TextAppearance attributes.
2. Removes unnecessary TextAppearance attributes overriding.

PiperOrigin-RevId: 392465193
2021-08-24 15:37:18 -04:00
dsn5ft
5d940f1ff8 [M3][Catalog] Update Catalog theme(s) to Material3 and fix Material3 date/time picker theme overlays
PiperOrigin-RevId: 391581833
2021-08-23 09:17:02 -07:00
dsn5ft
57e3bc02fa [i18n] Updated some string translations for date picker, time picker, and text field
PiperOrigin-RevId: 389899697
2021-08-10 21:08:28 -07:00
conradchen
b420eab0bc [TimePicker] Make display divider styling more flexible
PiperOrigin-RevId: 373818786
2021-05-14 15:32:10 -04:00
conradchen
818f253ade [MaterialTimePicker] Make time text input fields stying more flexible
PiperOrigin-RevId: 373199267
2021-05-14 15:20:30 -04:00
conradchen
b38a09f93e Automated g4 rollback of changelist 369683837
PiperOrigin-RevId: 369704013
2021-04-22 14:53:14 -04:00
Material Design Team
3891ca6c57 Automated g4 rollback of changelist 369658517
PiperOrigin-RevId: 369683837
2021-04-21 14:46:06 -04:00
conradchen
f617557ff9 [Color] Fix elevation overlay on time pickers
PiperOrigin-RevId: 369658517
2021-04-21 14:44:36 -04:00
haodong
0d0c90b9ef Updated string translations.
PiperOrigin-RevId: 354978993
2021-02-01 11:03:44 -08:00
marianomartin
bf0d11b4e7 [TimePicker] Changed clock face size to be dynamic
PiperOrigin-RevId: 352024053
2021-01-15 17:02:42 -05:00
marianomartin
74350dead6 [TimePicker] Fixed numbers glitching on first show of time picker
PiperOrigin-RevId: 350417836
2021-01-07 12:05:30 -05:00
dniz
4af9eabe8a [TimePicker] Renamed ThemeOverlay.MaterialComponents.MaterialTimePicker to ThemeOverlay.MaterialComponents.TimePicker to be more consistent with other time picker styles
PiperOrigin-RevId: 347692913
2020-12-15 17:49:51 -05:00
marianomartin
cbef0d3c1b [TimePicker] Change text input view to a view stub
PiperOrigin-RevId: 347387465
2020-12-14 15:10:26 -05:00
marianomartin
074ed18255 [TimePicker] Remove hint setting
PiperOrigin-RevId: 345071902
2020-12-02 10:07:59 -05:00
Sasikanth Miriyampalli
c6351c45d6 [MaterialTimePicker] Fixed typo in TextAppearance.MaterialComponents.TimePicker.Title
Resolves https://github.com/material-components/material-components-android/pull/1858

GIT_ORIGIN_REV_ID=c4ff46a1d0400da631df37537e9e610b3cae3c01
PiperOrigin-RevId: 341608315
2020-11-10 11:11:39 -05:00
hunterstich
6ad8301fb6 [I18n] Update string translations
PiperOrigin-RevId: 340622036
2020-11-04 11:22:36 -05:00
isabellekim
22467b4994 [TimePicker] Add default style attribute (materialClockStyle) to the time picker theme overlay for the clock face and clock hand, making all colors on the clock customizable.
materialClockStyle respects the following attributes:
+ clockFaceBackgroundColor: color of the clock face
+ clockHandColor: color of the clock hand
+ clockNumberTextColor: color of the numbers on the clock (CSL, selected state is used on top of the clockHandColor)

PiperOrigin-RevId: 339469022
2020-10-29 15:16:28 -04:00
isabellekim
7ef5308c14 [TimePicker] Update title color to be in typography.
PiperOrigin-RevId: 338666608
2020-10-23 12:30:36 -07:00
marianomartin
37c7f26793 [TimePicker] Increased touch target size of AM/PM toggle
PiperOrigin-RevId: 338328586
2020-10-21 15:55:50 -07:00
marianomartin
4aeb6a9dbb [TimePicker] Update image button appearance
PiperOrigin-RevId: 338316939
2020-10-21 15:54:20 -07:00
isabellekim
eec282bc05 [TimePicker] Moved TimePicker.Button style to MaterialTimePicker theme overlay.
PiperOrigin-RevId: 337536394
2020-10-19 05:55:37 -07:00
marianomartin
8da7336e89 [TimePicker] Added a style for timepicker to customize icons
PiperOrigin-RevId: 337525216
2020-10-19 05:54:54 -07:00
marianomartin
172e7ba710 [TimePicker] Added a style for the input mode button
PiperOrigin-RevId: 337513706
2020-10-19 05:50:35 -07:00
marianomartin
73031815ad [TimePicker] Added Theme Overlay to set default styles for widgets
PiperOrigin-RevId: 337338438
2020-10-15 13:42:16 -07:00
Material Design Team
b7bca363ae Automated g4 rollback of changelist 337164724
PiperOrigin-RevId: 337179972
2020-10-15 13:30:57 -07:00
marianomartin
e619132cbd [TimePicker] Added themoverlay to set default styles for widgets
PiperOrigin-RevId: 337164724
2020-10-15 13:30:13 -07:00
isabellekim
1cc34a09c7 [TimePicker] Update ripple color on the mode button for time picker to be based on the content color.
PiperOrigin-RevId: 337103634
2020-10-15 13:26:19 -07:00
connieshi
6951bd5179 [Chip] Support elevation overlay.
Resolves https://github.com/material-components/material-components-android/issues/1749

PiperOrigin-RevId: 336930100
2020-10-15 13:21:17 -07:00