2868 Commits

Author SHA1 Message Date
raajkumars
d1b682f9fd [tokens][M3][NavigationRail] Added design tokens for M3 NavigationRail Component.
PiperOrigin-RevId: 485968851
2022-11-07 15:57:48 +00:00
raajkumars
cb65cc6e60 [Tokens][M3][Chip] Integrate Chip component tokens to Chip styles in M3.
PiperOrigin-RevId: 485965681
2022-11-07 15:50:44 +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
Material Design Team
d0ca6ba28a [M3][Color] Internal refactors
PiperOrigin-RevId: 484971027
2022-10-31 07:42:14 -07:00
Material Design Team
8ca326ac52 [M3][Color] Added content color api
PiperOrigin-RevId: 484968589
2022-10-31 07:41:31 -07:00
pekingme
567cc5494b [Tokens] Refresh the output to reflect the current version.
PiperOrigin-RevId: 484515702
2022-10-28 07:46:16 -07:00
Material Design Team
644d141359 [ExposedDropdownMenu] Dismiss modal popup in dismissDropDown
PiperOrigin-RevId: 484502383
2022-10-28 07:45:40 -07:00
pekingme
4a24684535 [Tokens] Added in formatter a new feature to format a resource string without handling the ordering.
Also added xmlns verification.

PiperOrigin-RevId: 484343925
2022-10-28 07:44:58 -07:00
rightnao
cb384c5c2c [NavigationView] Disable drawing left and right insets if the nav bar is not edge to edge
resolves https://github.com/material-components/material-components-android/issues/3016

PiperOrigin-RevId: 484304490
2022-10-28 07:44:17 -07:00
leticiars
5d261f516a [Checkbox] Update unselected outline color to ?attr/colorOnSurfaceVariant to match tokens.
PiperOrigin-RevId: 484295821
2022-10-28 07:43:44 -07:00
rightnao
e3937483c3 [BottomNavigationView] Remove elevation shadows
PiperOrigin-RevId: 483721316
2022-10-28 07:42:47 -07:00
Material Design Team
3b333ee834 [Buttons] Use Layout to measure text width.
This corrects icon placement when used with Spanned text.

PiperOrigin-RevId: 483047554
2022-10-25 05:42:10 -07:00
rightnao
e474cf4796 [BottomSheet] Token integration
PiperOrigin-RevId: 482901648
2022-10-25 05:22:05 -07:00
afohrman
10d72eebec [Adaptive][Side Sheets] Added initial modal side sheet.
PiperOrigin-RevId: 482846478
2022-10-21 18:52:52 +00:00
pfthomas
0c204b8212 [MaterialTimePicker] Fix NumberFormatException
PiperOrigin-RevId: 482810027
2022-10-21 16:31:08 +00:00
Material Design Team
8510596528 [M3][Color] Added the rest of the library for content color support.
PiperOrigin-RevId: 482801156
2022-10-21 16:29:49 +00:00
afohrman
1d3e374387 [Adaptive Sheets][Side Sheets] Moved behavior_draggable attribute to the resources package.
PiperOrigin-RevId: 482590917
2022-10-21 16:28:01 +00: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
Material Design Team
f0e5bdafab [M3][Color] Updated material color utilities library implementation.
PiperOrigin-RevId: 482498574
2022-10-21 16:25:58 +00:00
rightnao
6cf56a5ebe [BottomSheet] Update elevation to match specs
PiperOrigin-RevId: 482255576
2022-10-21 16:25:14 +00:00
Material Design Team
db115f0a1f [ExposedDropdownMenu] Fix MaterialAutoCompleteTextView.setDropDownBackgroundDrawable(Drawable).
[TextField] MaterialAutoCompleteTextView uses a ListPopupWindow to show a modal dropdown menu when in "Accessibility Touch Exploration" mode. This popup also should respond to setDropDownBackgroundDrawable(Drawable).

PiperOrigin-RevId: 482233381
2022-10-21 16:23:52 +00:00
conradchen
a3521784e8 [TextField] Fix label cutout doesn't work on API < 18
Android framework Canvas.clipRect() has a bug with Region.Op.DIFFERENCE when handling bounds.left on APIs lower than 18, which causes text field outlines are still drawn over the label on lower APIs, despite the label area is supposed to be cut out.

Fixes this by bringing back the old solution we were using - "painting out" the label area after the stroke is drawn. Since the implementation is quite complicated, this CL also splits the CutoutDrawable to two inner impl classes to have a better code structure.

Resolves https://github.com/material-components/material-components-android/issues/2811#issuecomment-1196016169

PiperOrigin-RevId: 482013070
2022-10-19 09:20:41 -07:00
pekingme
d0460f3a70 [Tabs] Integrated tokens into M3 styles.
PiperOrigin-RevId: 481709158
2022-10-17 20:01:47 +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
rightnao
c8108b1f8e [TopAppBar] Update motion specs
PiperOrigin-RevId: 480953621
2022-10-13 21:01:26 +00:00
pekingme
34a1dde7b6 [Tabs] Fixed potential NPE when updating tab view.
PiperOrigin-RevId: 479643436
2022-10-11 14:03:44 +00:00
conradchen
f99e39df8c Automated g4 rollback of changelist 479423629
PiperOrigin-RevId: 479636961
2022-10-11 14:01:31 +00:00
rightnao
617e5822f9 [BottomSheet] Update elevation to match specs
PiperOrigin-RevId: 479423629
2022-10-11 14:00:59 +00:00
Blue
e8bfad5644 [MaterialButtonToggleGroup] handle setEnable childs
Resolves https://github.com/material-components/material-components-android/pull/2974
Resolves https://github.com/material-components/material-components-android/issues/2962
Resolves https://github.com/material-components/material-components-android/issues/1813

GIT_ORIGIN_REV_ID=e8f6b7cb1ca143f0ed1e2ec8d501164568dac2d9
PiperOrigin-RevId: 479403809
2022-10-11 14:00:17 +00: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
pfthomas
c6539f2390 [MaterialDatePicker][a11y] Announce current year and day
PiperOrigin-RevId: 479303709
2022-10-06 17:53:53 +00:00
Material Design Team
9897bc293d [M3][Color] Refactored material color utilities library into its own directory.
PiperOrigin-RevId: 479289696
2022-10-06 17:52:58 +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
Jerry Zhu
9e210ea731 [Slider] Add current value to talkback for Slider
Resolves https://github.com/material-components/material-components-android/pull/2964

GIT_ORIGIN_REV_ID=02fe1a0b529369772fec9c52631c75c1865535f3
PiperOrigin-RevId: 479097052
2022-10-06 17:51:41 +00:00
pfthomas
56ea071320 [MaterialTimePicker] Pre-fill hour and minute edit texts in text input mode
Resolves https://github.com/material-components/material-components-android/issues/2862

PiperOrigin-RevId: 479033062
2022-10-05 14:30:55 +00:00
kingwang666
624543f9bf [SwipeDismissBehavior] Fixed SwipeDissmissBehavior not work when down touch event consumed.
Resolves https://github.com/material-components/material-components-android/pull/2888
Resolves https://github.com/material-components/material-components-android/issues/1333

GIT_ORIGIN_REV_ID=12fbcbc29d61dd97abef6354b3e5cd5dede94f76
PiperOrigin-RevId: 478885591
2022-10-04 21:36:28 +00:00
conradchen
080403173c [BottomSheet] Sync custom actions with drag handle views
Custom actions need to be set directly on the focused child views to make talkback announce the existence of those actions correctly, despite that when you open custom action menu you can actually see they are being inherited from the parent view.

Makes BottomSheetBehavior be aware of the existence of accessibility delegate views, and update the custom actions on it when needed.

PiperOrigin-RevId: 478804858
2022-10-04 20:46:34 +00:00
leticiars
e67e68d6b4 [CheckBox] Integrated tokens
PiperOrigin-RevId: 478796974
2022-10-04 20:44:47 +00:00
pfthomas
9806ad99f7 [Internal][MaterialTimePicker] Revert pre-fill hour and minute edit texts in text input mode
PiperOrigin-RevId: 478603180
2022-10-04 20:43:49 +00:00
pekingme
112378dcfd [Switch] Removed resources from deprecated tokens.
PiperOrigin-RevId: 478539069
2022-10-03 19:38:45 +00:00
pfthomas
087da2f2bc [MaterialTimePicker] Pre-fill hour and minute edit texts in text input mode
Resolves https://github.com/material-components/material-components-android/issues/2862

PiperOrigin-RevId: 478507649
2022-10-03 19:16:44 +00:00
pfthomas
15c7128630 [MaterialTimePicker] Fix keyboard not showing at first in text input mode
PiperOrigin-RevId: 478500505
2022-10-03 19:15:55 +00:00
pubiqq
8cd2341a79 [Internal] Set the outline to a path whenever possible
Resolves https://github.com/material-components/material-components-android/pull/2934

GIT_ORIGIN_REV_ID=2ef0a3a6d9aa130e652fccbfc3d79f1345f2b32c
PiperOrigin-RevId: 478146360
2022-10-03 19:15:11 +00:00
pubiqq
e76eaff716 [TextInputLayout] Fixed counter overflow text color getter
Resolves https://github.com/material-components/material-components-android/pull/3002

GIT_ORIGIN_REV_ID=b9f8e26840e02df2529561cf464e347fe220065d
PiperOrigin-RevId: 478059617
2022-10-03 19:14:09 +00:00
pfthomas
be8b8d44de [MaterialDatePicker][a11y] Announce selection
PiperOrigin-RevId: 478026835
2022-10-03 19:13:28 +00:00
rightnao
c587dd1259 [AppBarLayout] Adding new attribute liftOnScrollColor that disables elevation overlay and allows users to change the app bar color
PiperOrigin-RevId: 477794812
2022-10-03 16:57:13 +00:00
leticiars
2f6ebb4001 [Divider] Integrated M3 tokens and updated color.
PiperOrigin-RevId: 477722114
2022-10-03 16:54:35 +00:00
pekingme
ed77ab36cc [Tokens] Refreshed outdated component token resources files.
PiperOrigin-RevId: 477262742
2022-09-28 00:07:41 +00:00
pubiqq
b6c6600ad8 [MaterialButtonToggleGroup] Added the default Material3 toggleGroupStyle
Resolves https://github.com/material-components/material-components-android/pull/2961

GIT_ORIGIN_REV_ID=94b9206658d66d0b7eaaaf4222bc2e0935fafa9b
PiperOrigin-RevId: 477243702
2022-09-27 23:57:48 +00:00