2897 Commits

Author SHA1 Message Date
conradchen
7b8faef12b [TopAppBar] Fix input rectangle being modified in onRequestChildRectangleOnScreen()
Resolves https://github.com/material-components/material-components-android/issues/3054

PiperOrigin-RevId: 491440304
2022-11-28 17:17:40 -05:00
pekingme
bf7b3c275f [Card] Integrated M3 tokens.
PiperOrigin-RevId: 490569453
2022-11-28 17:16:16 -05:00
pekingme
03bd77fae1 [Badge] Integrated component tokens.
PiperOrigin-RevId: 490569205
2022-11-28 17:15:29 -05:00
pekingme
2f7a70045d [Tooltip] Integrated tokens.
Also fixed an error in the token metadata.

PiperOrigin-RevId: 490564125
2022-11-23 15:43:28 -05:00
hunterstich
8aab29ad97 Automated g4 rollback of changelist 487605338
PiperOrigin-RevId: 490469343
2022-11-23 15:14:05 -05:00
pekingme
12ef329276 [Tokens] Upgraded to v0.141
PiperOrigin-RevId: 490324728
2022-11-23 15:13:20 -05:00
pekingme
b2b546b205 [Tokens] Internal updates.
PiperOrigin-RevId: 490295053
2022-11-23 15:11:19 -05:00
raajkumars
978ffdf0aa [M3][SearchBar][SearchView] Renamed search style attributes to add "material" prefix.
PiperOrigin-RevId: 490260853
2022-11-22 12:36:54 -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
leticiars
b08257bce3 [Divider] Change shouldDrawDivider from private to protected to allow for more user flexibility.
PiperOrigin-RevId: 490032010
2022-11-22 12:30:53 -05:00
raajkumars
2977a75f29 [SearchBar][SearchView] Removed M3 search style references from Material theme.
PiperOrigin-RevId: 490020028
2022-11-22 12:30:07 -05:00
raajkumars
d1bacf55db [M3][SearchBar] Added new SearchBar and SearchView components
PiperOrigin-RevId: 490002827
2022-11-21 13:02:32 -05:00
Material Design Team
2351fd9f6c [M3][Color] Updated Builder class for content color
PiperOrigin-RevId: 489981392
2022-11-21 16:15:36 +00:00
Material Design Team
4619f31bc7 [M3][Color] Implement content color with resources loader
PiperOrigin-RevId: 489967833
2022-11-21 16:00:04 +00:00
rightnao
4a0e1a0cdb [TabLayout] Fix bug with selected tab text appearance when swiping in viewpager.
PiperOrigin-RevId: 489559352
2022-11-18 22:36:16 +00:00
pubiqq
cb1905dbff [TabLayout] Fix default tabTextAppearance
Resolves https://github.com/material-components/material-components-android/pull/3085

GIT_ORIGIN_REV_ID=5c801bb6b6e9df227094106dedc5defa24b99077
PiperOrigin-RevId: 489517504
2022-11-18 16:57:53 -05:00
afohrman
7a706cc82c [Adaptive] [Side Sheet] Add STATE_HIDDEN to SideSheetBehavior#getState javadoc.
STATE_HIDDEN was missing from the list of possible state constants returned by getState().

PiperOrigin-RevId: 489292973
2022-11-18 16:56:39 -05:00
hunterstich
8d8a0d14ae [Dialog][DatePicker][TimePicker] Updated enter/exit animation to use fade pattern and motion tokens.
Added xml implementations of the Material Fade pattern (https://github.com/material-components/material-components-android/blob/master/docs/theming/Motion.md#fade) and updated all dialogs to use the new animators for enter and exit animations.

PiperOrigin-RevId: 489271559
2022-11-18 16:55:59 -05:00
pfthomas
4046525b20 [MaterialDatePicker] Improve inputs validation
PiperOrigin-RevId: 489269023
2022-11-18 16:55:22 -05:00
rightnao
1cdb371c30 [BottomSheet] Update motion attributes for bottom sheet dialog animation
PiperOrigin-RevId: 487605720
2022-11-18 16:54:23 -05:00
hunterstich
0b72e3ad4f Automated g4 rollback of changelist 487228839
PiperOrigin-RevId: 487605338
2022-11-18 16:53:43 -05:00
pfthomas
b1bd580d7e [NavigationDrawer] Updated active text label to use a bold typeface.
PiperOrigin-RevId: 487600688
2022-11-18 16:53:12 -05:00
rightnao
d5b41c185f [ExtendedFloatingActionButton] Add a extendToWrapContent attribute that can disable the current eFAB behavior of extending to wrap content (thus allowing extend to return to its original width before shrinking)
Resolves https://github.com/material-components/material-components-android/issues/3006

PiperOrigin-RevId: 487376415
2022-11-10 18:23:28 +00:00
rightnao
857f481edd [TabLayout] Fixing bug with animation cancelling if tab is double-tapped
resolves https://github.com/material-components/material-components-android/issues/3069

PiperOrigin-RevId: 487376299
2022-11-10 18:22:41 +00:00
hunterstich
3fc3ec1153 [Switch] Update animations to use motion themeing.
PiperOrigin-RevId: 487228839
2022-11-10 18:22:05 +00:00
afohrman
1653055b2c [Adaptive] [Side Sheet] Changed modal side sheet shape to large.
PiperOrigin-RevId: 487001390
2022-11-10 18:21:26 +00: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
raajkumars
b9e8fb89fa [Tokens][M3][Button] Integrate M3 Tokens.
PiperOrigin-RevId: 486679417
2022-11-09 22:13:11 +00:00
rightnao
f9a37c5077 [TabLayout] Fix tab indicator animation
resolves https://github.com/material-components/material-components-android/issues/3047

PiperOrigin-RevId: 486241080
2022-11-07 16:00:53 +00:00
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