57 Commits

Author SHA1 Message Date
pekingme
8204856dd4 [Token][Color] Upgraded to v0.170 for tonal surface colors.
PiperOrigin-RevId: 555230534
2023-08-09 19:03:25 +00:00
pfthomas
ec511a54cf [MaterialDatePicker] Update screen width at which days size is 48dp in portrait mode.
PiperOrigin-RevId: 521476833
2023-04-10 14:42:10 +00:00
pekingme
7b2c19b273 [DatePicker] Made dialog container color configurable in xml style.
PiperOrigin-RevId: 520113790
2023-03-29 19:04:50 +00:00
pekingme
30ea33e948 [Datepicker] Integrated tokens.
PiperOrigin-RevId: 519201395
2023-03-24 19:24:16 +00:00
dsn5ft
5689ce2608 [i18n] Update string translations
PiperOrigin-RevId: 513006191
2023-02-28 22:08:20 +00:00
pfthomas
56f816cc33 [MaterialDatePicker] Fix broken layout when custom description is used
Resolves https://github.com/material-components/material-components-android/issues/3179

PiperOrigin-RevId: 506311285
2023-02-01 15:35:26 +00:00
pfthomas
09f26073ae [MaterialDatePicker] Fix headerTitle text size
PiperOrigin-RevId: 497183320
2022-12-22 23:48:23 +00:00
pfthomas
d4c16e8486 [MaterialDatePicker] Capitalize standalone date
PiperOrigin-RevId: 495627493
2022-12-16 00:54:55 +00:00
pfthomas
bb3ea6e8bb [MaterialDatePicker] Update text appearances
PiperOrigin-RevId: 493280301
2022-12-06 15:24:24 -05:00
pfthomas
b813b2b441 [MaterialDatePicker] Update elevation to match specs
Resolves https://github.com/material-components/material-components-android/issues/2987

PiperOrigin-RevId: 490248736
2022-11-22 12:36:03 -05:00
pfthomas
5c5b1e8258 [MaterialDatePicker][a11y] Improve date selection announcements
- improve selection announcement for both single and range date selectors
- properly announce start date when partially selected range

PiperOrigin-RevId: 482581175
2022-10-21 16:27:31 +00:00
pfthomas
32f111817f [MaterialDatePicker] Enable auto-sizing of the date selection text
PiperOrigin-RevId: 481169899
2022-10-17 20:01:10 +00:00
pfthomas
2f9844b34a [MaterialDatePicker][a11y] Announce start/end dates
PiperOrigin-RevId: 481152229
2022-10-17 20:00:14 +00:00
pfthomas
c6539f2390 [MaterialDatePicker][a11y] Announce current year and day
PiperOrigin-RevId: 479303709
2022-10-06 17:53:53 +00:00
pfthomas
62b2b19d60 [MaterialDatePicker][a11y] Fix TalkBack announcements when switching between year/day selection views
PiperOrigin-RevId: 479098621
2022-10-06 17:52:20 +00:00
afohrman
8dcdd26834 [Translations][Date Picker] Update string translation for datepicker.
PiperOrigin-RevId: 476115968
2022-09-22 17:40:54 +00:00
rightnao
7c56473a58 [Translations] Update string translations
PiperOrigin-RevId: 472531245
2022-09-08 13:25:10 -04:00
dsn5ft
debe22e397 [MaterialDatePicker] Refactor header styling to allow for multiline title with description text
PiperOrigin-RevId: 465538100
2022-08-05 20:02:57 +00:00
pfthomas
91a2550afd [DatePicker] Migrate to new shape system
PiperOrigin-RevId: 448057183
2022-05-12 17:15:26 -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
c23daec8b1 [MaterialDatePicker][a11y] Make picker header focusable to improve TalkBack response
PiperOrigin-RevId: 440375456
2022-04-11 11:13:40 -04:00
conradchen
be6050a23c [DatePicker] Always go edge-to-edge in fullscreen mode
Resolves https://github.com/material-components/material-components-android/issues/1966

PiperOrigin-RevId: 432296692
2022-03-04 13:06:17 -05:00
pfthomas
94cd532bd1 [DatePicker] Start align edit icon in landscape
PiperOrigin-RevId: 426402283
2022-02-04 13:43:51 -08:00
conradchen
e7bc947cd5 [DatePicker] Replace fragment container with FragmentContainerView
As suggested in https://developer.android.com/reference/androidx/fragment/app/FragmentContainerView

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

PiperOrigin-RevId: 416323969
2021-12-14 14:54:29 -05:00
conradchen
fba1a341c3 [M3][DatePicker] Fix M3 date picker styles
Some attributes were wrongly added to the styles. We need to remove them to make the color correct.

PiperOrigin-RevId: 409241943
2021-11-16 12:33:57 -05:00
leticiars
9b5356f2fe [DatePicker] Wrapped text fields from range picker selection in a ScrollView so their heights don't change in landscape mode.
PiperOrigin-RevId: 408333813
2021-11-10 15:57:22 -05: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
ca09b7b04b [M3][DatePicker] Fix month naviation button alignment
With MaterialButton, if we want an icon to be center aligned when there's no text, we need to set icon padding to 0dp and icon gravity to text-start or text-end. Updates the M3 style to make the icon center aligned.

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

PiperOrigin-RevId: 400242967
2021-10-04 20:20:19 +00:00
conradchen
83e73de6b8 [M3][DatePicker] Update date picker title typography
PiperOrigin-RevId: 396385304
2021-09-16 11:32:42 -07:00
conradchen
2901012af5 [M3][DatePicker] Create M3 styles
PiperOrigin-RevId: 392982386
2021-08-26 14:43:23 -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
37f0ca1a97 [MaterialDatePicker] Make calendar day of week label stying more flexible
PiperOrigin-RevId: 372976792
2021-05-11 12:56:55 -04:00
haodong
0d0c90b9ef Updated string translations.
PiperOrigin-RevId: 354978993
2021-02-01 11:03:44 -08:00
hunterstich
6ad8301fb6 [I18n] Update string translations
PiperOrigin-RevId: 340622036
2020-11-04 11:22:36 -05:00
Material Design Team
ffcf70adde [DatePicker] Changes to allow the MaterialCalendar to exist inside a scrollable view.
PiperOrigin-RevId: 336952059
2020-10-15 13:23:12 -07:00
dniz
d82742695c [DatePicker] Update header title strings to match spec
PiperOrigin-RevId: 334794175
2020-10-01 11:27:11 -04:00
dniz
af375eb31a [DatePicker] Added string translations for i18n / l10n
Resolves https://github.com/material-components/material-components-android/issues/761
Resolves https://github.com/material-components/material-components-android/issues/868
Resolves https://github.com/material-components/material-components-android/issues/1216
Resolves https://github.com/material-components/material-components-android/issues/1353
Resolves https://github.com/material-components/material-components-android/issues/1764

PiperOrigin-RevId: 334440771
2020-09-29 16:39:24 -04:00
dniz
2f9c2b0491 [Cleanup] Fix formatting of copyrights in xml
PiperOrigin-RevId: 334423264
2020-09-29 16:34:51 -04:00
cketcham
c65a26281b [DatePicker] Updates the color of the month labels in fullscreen mode
PiperOrigin-RevId: 331017575
2020-09-11 14:26:09 -04:00
cketcham
bf86d82e61 [DatePicker] Allow for styling dialog close icon color for full screen dialog
PiperOrigin-RevId: 330739711
2020-09-10 11:11:43 -04:00
cketcham
6cb28b927b [DatePicker] Update month and year navigation to use the correct color
PiperOrigin-RevId: 328774367
2020-08-28 10:10:06 -04:00
dniz
b82d41fe55 [MaterialDatePicker] Fixed orientation of next/previous month button icons for RTL languages
Resolves https://github.com/material-components/material-components-android/issues/1485
Resolves https://github.com/material-components/material-components-android/pull/1518

Co-authored-by: Mattia <darksoulcyber@hotmail.it>
PiperOrigin-RevId: 323566996
2020-07-28 10:29:58 -04:00
leticiars
d868be243c [DatePicker] Set min width on the confirm OK button.
May fix https://github.com/material-components/material-components-android/issues/1346

PiperOrigin-RevId: 321169998
2020-07-15 09:48:22 -07:00
hunterstich
a265520e42 [MaterialDatePicker] Update datepicker drawable resources to use material_ prefix.
Resolves https://github.com/material-components/material-components-android/issues/1166

PiperOrigin-RevId: 305078908
2020-04-06 13:26:41 -07:00
Material Design Team
e6e9a07f4b Automated g4 rollback of changelist 305014223
PiperOrigin-RevId: 305017071
2020-04-06 12:47:42 -07:00
hunterstich
2ac7fb75df [MaterialDatePicker] Prefix drawables with mtrl_ to avoid client confliects.
Resolves https://github.com/material-components/material-components-android/issues/1166

PiperOrigin-RevId: 305014223
2020-04-06 12:34:43 -07:00
ldjesper
e56db0cee9 Update CHAR_LIMIT to 2 for MaterialCalendar strings that require a sub-character for i18n
PiperOrigin-RevId: 280474887
2019-11-15 15:10:57 -05:00