161 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
rightnao
e3b255b3a0 [Docs] Crosslink github docs in javadocs
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +00:00
pfthomas
4d8043453e [MaterialDatePicker] Allow client app to access user selected inputMode
Resolves https://github.com/material-components/material-components-android/pull/3414

PiperOrigin-RevId: 539713099
2023-06-14 15:13:51 +00:00
dsn5ft
7ccf6708b0 [MaterialDatePicker] Fix crash when clicking OK/Cancel on text input mode due to hiding keyboard
PiperOrigin-RevId: 529835294
2023-05-08 14:53:58 -04:00
pfthomas
29b59c21f5 [MaterialDatePicker] Add getTextColor to DayViewDecorator
PiperOrigin-RevId: 527265648
2023-04-26 16:19:16 -04:00
pfthomas
f4d0f5653a [MaterialDatePicker] a11y/i18n alignment
Resolves https://github.com/material-components/material-components-android/issues/3343

PiperOrigin-RevId: 526657661
2023-04-24 15:30:28 -04:00
Kavita Patil
35bd1fc98f [Date Picker] ContentDescription for "DayName" is not properly getting read by talkback for the German language
Resolves https://github.com/material-components/material-components-android/pull/3051

GIT_ORIGIN_REV_ID=91b350bf4830f5903d4809a1c3b097bbec2c2b27
PiperOrigin-RevId: 524068644
2023-04-17 12:14:49 -07:00
pubiqq
619d5a6cad [DatePicker] Fix time zone when custom text input format is set
Resolves https://github.com/material-components/material-components-android/pull/3338

GIT_ORIGIN_REV_ID=bb3760f22753b10608d5bd1b342b5b063b3276bb
PiperOrigin-RevId: 523792669
2023-04-13 09:06:29 -07: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
pfthomas
bcc97bfaf5 [MaterialDatePicker] Fix hint for Korean
PiperOrigin-RevId: 520025180
2023-03-28 16:20:46 +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
4032a74112 [MaterialDatePicker] Fix keyboard not showing at first in text input mode
Resolves https://github.com/material-components/material-components-android/issues/2747

PiperOrigin-RevId: 511501130
2023-02-23 03:46:22 -08: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
2cef555994 [MaterialDatePicker] Fix NPE
PiperOrigin-RevId: 504263005
2023-01-24 17:03:54 +00:00
pfthomas
c484ea7da2 [MaterialCalendar] Fix NPE
PiperOrigin-RevId: 502984835
2023-01-19 17:52:32 +00:00
pfthomas
cd5246f49e [MaterialDatePicker][a11y] Improve date input validation feedback follow up
PiperOrigin-RevId: 498167309
2022-12-29 00:21:20 -05:00
pfthomas
e1688f3d19 [MaterialDatePicker][a11y] Improve date input validation feedback
Resolves https://github.com/material-components/material-components-android/issues/2223

Add `TextInputLayout.setErrorAccessibilityLiveRegion` and `TextInputLayout.getErrorAccessibilityLiveRegion` to allow controlling the way the TextInputLayout error is announced.

Example:

```
textInputLayout.setErrorAccessibilityLiveRegion(ViewCompat.ACCESSIBILITY_LIVE_REGION_NONE);
```

PiperOrigin-RevId: 497323465
2022-12-29 00:19:00 -05:00
pfthomas
09f26073ae [MaterialDatePicker] Fix headerTitle text size
PiperOrigin-RevId: 497183320
2022-12-22 23:48:23 +00:00
pfthomas
11c1df9c8f [MaterialDatePicker] Unhide setFirstDayOfWeek
Resolves https://github.com/material-components/material-components-android/issues/1949

PiperOrigin-RevId: 496865765
2022-12-21 21:14:25 +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
4046525b20 [MaterialDatePicker] Improve inputs validation
PiperOrigin-RevId: 489269023
2022-11-18 16:55:22 -05:00
pfthomas
dff70c062d [MaterialDatePicker][a11y] Improve TalkBack focus order when selecting a day
Make RecyclerView non-scrollable to allow focusing away from it instead of paginating to previous/next month.

PiperOrigin-RevId: 486936286
2022-11-09 22:14:37 +00:00
hunterstich
276c1171b0 [DatePicker] Exposed method to set a custom formatter for text input fields.
Resolves https://github.com/material-components/material-components-android/issues/3039

PiperOrigin-RevId: 485128314
2022-11-01 05:23:20 -07: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
pfthomas
be8b8d44de [MaterialDatePicker][a11y] Announce selection
PiperOrigin-RevId: 478026835
2022-10-03 19:13:28 +00:00
afohrman
8dcdd26834 [Translations][Date Picker] Update string translation for datepicker.
PiperOrigin-RevId: 476115968
2022-09-22 17:40:54 +00:00
pfthomas
7bc5689789 [MaterialDatePicker] Add method to specify a content description to decorated views
PiperOrigin-RevId: 474622363
2022-09-16 13:56:02 -04:00
rightnao
6643695c3e [DatePicker] Make new public getter methods for start/end/openAt values with long return types for CalendarConstraints
Resolves https://github.com/material-components/material-components-android/issues/2907

PiperOrigin-RevId: 473053039
2022-09-12 12:24:13 -04:00
rightnao
7c56473a58 [Translations] Update string translations
PiperOrigin-RevId: 472531245
2022-09-08 13:25:10 -04:00
rightnao
95ab9794cb [DatePicker] Expose CalendarConstraints start and end getter methods
resolves https://github.com/material-components/material-components-android/issues/2907

PiperOrigin-RevId: 469332050
2022-08-24 14:40:13 -07:00
Material Design Team
44cc9b745c Add @CanIgnoreReturnValue to some APIs that return this.
PiperOrigin-RevId: 468721442
2022-08-22 15:22:27 -04:00
dsn5ft
be650c4f57 [MaterialDatePicker] Add initialize() method to DayViewDecorator to better support configuration changes
Fixes an issue where compound drawables using resource qualifiers like -land will have the wrong value on rotation

PiperOrigin-RevId: 466776776
2022-08-11 12:52:12 -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
pubiqq
51b605412a [MaterialDatePicker] Hide month pagination from the year picker
Resolves https://github.com/material-components/material-components-android/pull/2875

GIT_ORIGIN_REV_ID=b8c071d568282f16f8d9b498f2bbcba11be800db
PiperOrigin-RevId: 465055372
2022-08-04 14:33:29 -04:00
dsn5ft
24201b4246 [MaterialDatePicker] Add ability to customize background color to DayViewDecorator
Resolves https://github.com/material-components/material-components-android/issues/2881

PiperOrigin-RevId: 464841873
2022-08-04 14:32:40 -04:00
dsn5ft
bca0f2ea8e [MaterialDatePicker] Add support for decorating day views and a demo for circle indicators
Resolves https://github.com/material-components/material-components-android/issues/2854

PiperOrigin-RevId: 463608089
2022-07-28 17:39:54 -04:00
pfthomas
be8e4e2d9a [MaterialDatePicker] Improve error formatting
PiperOrigin-RevId: 459495629
2022-07-07 12:30:40 -07:00
pfthomas
91a2550afd [DatePicker] Migrate to new shape system
PiperOrigin-RevId: 448057183
2022-05-12 17:15:26 -04:00
pfthomas
85c40a6a51 [MaterialDatePicker] Internal change
PiperOrigin-RevId: 448042520
2022-05-11 15:00:27 -04:00
pubiqq
5d6678cc66 [MaterialDatePicker] Hide the keyboard when switching to calendar mode
Resolves https://github.com/material-components/material-components-android/pull/2688
Resolves https://github.com/material-components/material-components-android/issues/2687

GIT_ORIGIN_REV_ID=686526aa049eadb08ded72ca9eb0b60027358756
PiperOrigin-RevId: 447819486
2022-05-11 09:41:38 -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