30 Commits

Author SHA1 Message Date
rightnao
400d695bc5 [Lists] Add ListItemRevealLayout, ListItemCardView, and relevant interfaces to introduce swiping in ListItemLayout
PiperOrigin-RevId: 818827578
2025-10-14 19:02:04 +00:00
rightnao
3c332f9a27 [Lists] Introduce ListItemLayout and ListItemViewHolder with catalog demo
PiperOrigin-RevId: 791886366
2025-08-08 17:47:51 +00:00
rightnao
7fe9ef9e06 [Theme] Added missing Shape Attributes to Dialog themes
PiperOrigin-RevId: 789801786
2025-08-01 18:38:18 +00:00
Material Design Team
60b0325b39 [Internal] Updated robolectric tests to run on minSdk 23
PiperOrigin-RevId: 774815542
2025-06-23 18:14:50 +00:00
leticiars
914900e342 [OverflowLinearLayout] Added OverflowLinearLayout to support adaptive behavior of the floating and docked toolbars.
When wrapping the floating/docked toolbar's children in a OverflowLinearLayout, the toolbar will automatically move children to an overflow menu when there's not enough screen space for all the items to fit in the toolbar.

The children moved to an overflow menu will always be the ones at the end of the toolbar that do not fit the max toolbar size. An overflow button will be automatically placed as the last child of the toolbar when overflow happens.

PiperOrigin-RevId: 758661471
2025-05-14 19:16:20 +00:00
Material Design Team
de11797e3b Automated g4 rollback of changelist 757750540
PiperOrigin-RevId: 757786848
2025-05-12 18:41:35 +00:00
leticiars
a12f17a93f [OverflowLinearLayout] Added OverflowLinearLayout to support adaptive behavior of the floating and docked toolbars.
When wrapping the floating/docked toolbar's children in a OverflowLinearLayout, the toolbar will automatically move children to an overflow menu when there's not enough screen space for all the items to fit in the toolbar.

The children moved to an overflow menu will always be the ones at the end of the toolbar that do not fit the max toolbar size. An overflow button will be automatically placed as the last child of the toolbar when overflow happens.

PiperOrigin-RevId: 757750540
2025-05-12 18:40:49 +00:00
rightnao
1b58f5ff5e [Dialog] Add m3 styles for floating toolbar and docked toolbar for dialog
PiperOrigin-RevId: 755376708
2025-05-07 19:29:44 +00:00
hunterstich
59de693346 [Motion] Fixed typo for "spatial"
PiperOrigin-RevId: 708423524
2024-12-23 18:54:42 +00:00
hunterstich
98169d21c4 [Motion] Added spring motion subsystem
PiperOrigin-RevId: 705572242
2024-12-16 13:07:30 +00:00
raajkumars
e56e9b1dde [M3][Search] Fix Search view prefix style.
PiperOrigin-RevId: 524945100
2023-04-19 13:53:58 -07:00
pekingme
4f3dc3ed19 [Color] Added new theme attributes for fixed accent colors.
PiperOrigin-RevId: 506910629
2023-02-03 21:02:49 +00:00
pekingme
989d574dbb [Color] Added tonal surface color theme attributes and updated themes.
PiperOrigin-RevId: 492316991
2022-12-02 16:01:22 +00: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
raajkumars
d1bacf55db [M3][SearchBar] Added new SearchBar and SearchView components
PiperOrigin-RevId: 490002827
2022-11-21 13:02:32 -05:00
pekingme
ac6f13c0be [Theme] Added a theme attribute for outline-variant color.
PiperOrigin-RevId: 475881564
2022-09-22 17:40:01 +00:00
conradchen
ac7b761294 [BottomSheet] Create a drag handle view which support accessibility control
PiperOrigin-RevId: 457939228
2022-06-29 14:38:43 +00:00
conradchen
1e08c680d4 [Switch] Add material switch style to M3 themes
Also add public attributes to public.xml

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

PiperOrigin-RevId: 450782655
2022-05-25 15:17:43 -04:00
pekingme
acc75697ea [FAB] Added "Small" styles with new shape system.
PiperOrigin-RevId: 450003295
2022-05-23 11:13:49 -04:00
conradchen
fd40fea461 [Switch] Override switch width set by AppCompat to respect the drawable width
PiperOrigin-RevId: 449238028
2022-05-17 14:55:17 -04:00
conradchen
413a047957 [ChipGroup] Fix ChipGroup.getCheckedChipIds() returns wrong state
In the Chip implementation, onCheckedChangeListener was called before onCheckedChangeListenerInternal. This causes an issue that in onCheckedChangeListener's callback, the checkable group's checked state is not updated yet, therefore ChipGroup.getCheckedChipIds() will return the outdated checked state.

Fixes this by overriding Chip.setOnCheckedChangeListener to get full control of the execution order between onCheckedChangeListener and onCheckedChangeListenerInternal.

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

PiperOrigin-RevId: 449100861
2022-05-17 11:04:03 -04:00
dsn5ft
9cd794c72f [Gradle] Remove unit test resources from main library source set and refactor the way test resources are configured/accessed
Resolves https://github.com/material-components/material-components-android/issues/1709

PiperOrigin-RevId: 449026115
2022-05-16 16:08:05 -04:00
raajkumars
402bdf4bbe [Button] Added materialIconButtonStyle attribute and updated M3 doc to document icon (only) button style and attribute.
PiperOrigin-RevId: 446487810
2022-05-04 18:27:31 -04:00
pubiqq
3ca41be8f0 [General] Fix typos
Resolves https://github.com/material-components/material-components-android/pull/2654

GIT_ORIGIN_REV_ID=b8f6728979875629f2c813ef90d2f671cf56b4eb
PiperOrigin-RevId: 442852630
2022-04-19 14:48:55 -04:00
pfthomas
bed2ac17a7 [M3] Add textAppearanceListItem* styles to theme
PiperOrigin-RevId: 406832937
2021-11-01 19:31:19 +00:00
dsn5ft
9ae56ceedd [Javadocs] Remove all broken attr links from Javadocs
PiperOrigin-RevId: 404246710
2021-10-20 19:06:18 +00:00
conradchen
b40b782525 [M3][Card] Add filled card style to M3 themes
PiperOrigin-RevId: 398780149
2021-09-28 14:52:04 +00:00
pekingme
ad953814e9 [Theme] Added theme testing for MaterialComponents and added progress indicator styles in MaterialComponents dialog themes.
PiperOrigin-RevId: 396401732
2021-09-16 11:34:28 -07:00
pekingme
e509cb4a6a [M3][Theme] Added M3 theme tests.
PiperOrigin-RevId: 395958035
2021-09-15 13:04:03 -07:00
dniz
f2db1d9ac9 Add color theme attributes that swap between primary and surface colors depending on light vs dark theme
Makes it easier for devs to implement: https://material.io/design/color/dark-theme.html#custom-application

PiperOrigin-RevId: 255962470
2019-07-03 14:05:18 -04:00