3531 Commits

Author SHA1 Message Date
kendricku
9397801ac7 [SplitButton] Update split button styles to match spec.
PiperOrigin-RevId: 705488629
2024-12-16 13:06:14 +00:00
rightnao
2a0dda873c [NavigationRail] Consume all touch events to avoid views under from receiving touch events.
PiperOrigin-RevId: 705270356
2024-12-16 13:02:13 +00:00
pekingme
782d2607da [Collapsing Toolbar] Removed the gravity APIs for subtitle (subtitle shares same gravity as title).
PiperOrigin-RevId: 704844851
2024-12-16 13:01:25 +00:00
rightnao
4bc4381e24 [Carousel] Added a notifyItemSizeChanged() method
PiperOrigin-RevId: 704836257
2024-12-16 13:00:43 +00:00
hunterstich
4019e182e6 [Motion] Added spring motion tokens
PiperOrigin-RevId: 704751542
2024-12-16 12:59:36 +00:00
kendricku
ec8be9ab57 Internal change
PiperOrigin-RevId: 704689311
2024-12-10 18:03:07 +00:00
rightnao
2ebf28fdb5 [BottomNavigationView] Consume all touch events in BottomNavigationView so touch events are not passed to the view underneath
PiperOrigin-RevId: 703309708
2024-12-10 17:58:41 +00:00
pekingme
4f7bf293ea [Tokens] Updated token outputs to v13.2.0 and integrated new AppBar tokens.
PiperOrigin-RevId: 703208208
2024-12-10 17:57:50 +00:00
pfthomas
63e1ec9a54 [Slider] a11y fixes
- demos are scrollable
- fix issue where increment is reversed when Slider is vertical

PiperOrigin-RevId: 703087896
2024-12-10 17:56:45 +00:00
rightnao
03d2c693cb [Chip] Add @Override to Chip#setBackgroundTintList
PiperOrigin-RevId: 702838517
2024-12-05 00:01:57 +00:00
pfthomas
35a82030f5 [Slider] a11y fixes
Resolves https://github.com/material-components/material-components-android/issues/2176

PiperOrigin-RevId: 702789538
2024-12-04 23:59:28 +00:00
pubiqq
c1c19c8b3a [Internal] Update targetApi suppressions in resources
Resolves https://github.com/material-components/material-components-android/pull/4308

GIT_ORIGIN_REV_ID=8016db9460e4e1013e56a50e541406ff356e2837
PiperOrigin-RevId: 702111281
2024-12-04 23:58:23 +00:00
rightnao
1696ec3dcd [NavigationBar] Fix bug where setChecked(false) is called for the previously checked item even if it's already unchecked
PiperOrigin-RevId: 702083973
2024-12-04 23:57:41 +00:00
manabu-nakamura
d68ebbebdf [TabLayout] Update ripple to match m3 specs
Resolves https://github.com/material-components/material-components-android/pull/4404

GIT_ORIGIN_REV_ID=bc26e80ce36665c6fb07568a17bfe6646b37a956
PiperOrigin-RevId: 702057260
2024-12-04 23:56:54 +00:00
pubiqq
767f25aa49 [Docs] Fix javadoc links
Resolves https://github.com/material-components/material-components-android/pull/4333

GIT_ORIGIN_REV_ID=61739e430bcda13086b83015e4054d7e318cd0d5
PiperOrigin-RevId: 700775734
2024-12-02 20:07:07 +00:00
pfthomas
05fa0ce58f [Slider] Update corner behavior
- add corner "squishy" effect as the thumb approaches the edges of the track.

PiperOrigin-RevId: 700775657
2024-12-02 20:06:28 +00:00
kendricku
106aaeb2d4 [SplitButton] Update split button styles to match spec.
PiperOrigin-RevId: 700697360
2024-12-02 20:05:49 +00:00
rightnao
c77f997f33 [NavigationRail] Fix issue where large/multi-line text was measured incorrectly when animating to be visible from a GONE state
PiperOrigin-RevId: 700446168
2024-12-02 20:03:57 +00:00
pekingme
d4b9d90ee1 [MaterialShapes] Fixed uneven rotation of pentagon shape.
Resolves https://github.com/material-components/material-components-android/issues/4306

PiperOrigin-RevId: 700371467
2024-12-02 19:58:56 +00:00
pfthomas
e1c83edbcb [Slider] Fix vertical slider broken with always visible labels
Resolves https://github.com/material-components/material-components-android/issues/4391

PiperOrigin-RevId: 700333450
2024-12-02 19:43:42 +00:00
rightnao
5a8c39a1bf [NavigationRail][BottomNavigation] Add attributes for scaling label text to font size and for the max lines for the label
PiperOrigin-RevId: 700052136
2024-12-02 19:43:03 +00:00
pekingme
73b577dd6a [TopAppBar] Added collapsing subtitle.
PiperOrigin-RevId: 700042153
2024-12-02 19:42:27 +00:00
rightnao
0e9ab6616d [NavigationRail] Integrate tokens
PiperOrigin-RevId: 699328711
2024-12-02 19:41:20 +00:00
afohrman
c24c67db25 [FloatingToolbar] Added materialThemeOverlays to automatically set orientation and the proper icon button style on floating toolbar children.
These new materialThemeOverlays allow the FloatingToolbar style variants to elegantly handle configuration of its children, by automatically setting the orientation of the .Horizontal style variants' children to horizontal and the orientation of the .Vertical variants' children to vertical, and setting the appropriate icon button style for each floating toolbar variant, as determined by the parent style.

Also added vibrant icon button styles so that they can be set from the new theme overlays, so that the proper button styling is set on both checkable and non-checkable buttons on both vibrant and non-vibrant variants.

Reconfigured the catalog demo to remove android:orientation from the children since it's no longer necessary.

PiperOrigin-RevId: 699262068
2024-12-02 19:39:01 +00:00
hunterstich
e6472658a6 [Internal] Replaced MaterialThemeOverlay#wrap existing public wrap method.
PiperOrigin-RevId: 698796795
2024-11-21 17:36:09 +00:00
pekingme
afc392c4a2 [LoadingIndicator] Fixed the issue that animation doesn't resume when window becomes visible.
PiperOrigin-RevId: 698794935
2024-11-21 17:35:03 +00:00
rightnao
3b11e7457c [NavigationRail] Design review adjustments
PiperOrigin-RevId: 698483697
2024-11-21 17:32:03 +00:00
Material Design Team
10f3d3bd98 [Carousel]Prevent touch events from reaching hidden views.
PiperOrigin-RevId: 698207866
2024-11-21 17:31:20 +00:00
kendricku
06c9ab90d9 [SplitButton] Generate tokens for Split Button component.
PiperOrigin-RevId: 697937775
2024-11-21 17:30:25 +00:00
pekingme
0a5f347ec9 [LoadingIndicator] Fixed unstoppable animators.
Resolves https://github.com/material-components/material-components-android/issues/4267

PiperOrigin-RevId: 697705431
2024-11-21 17:28:18 +00:00
pekingme
6eb44a2dfa [ProgressIndicator] Optimized the allocation during drawing.
PiperOrigin-RevId: 696962725
2024-11-21 17:26:32 +00:00
pfthomas
60c09d98a1 [Slider] Add extra track icons support
- added support for start and end track icons
- removed the hide/show track icon logic to let the user implement it for more flexibility
- added demo
- updated tests + doc

PiperOrigin-RevId: 696960630
2024-11-21 17:25:26 +00:00
pekingme
4ec0447978 [ProgressIndicator] Added the API to adjust indeterminate animation duration scale.
PiperOrigin-RevId: 696942118
2024-11-21 17:24:29 +00:00
afohrman
6635bbe519 [FloatingToolbar] Fixed catalog formatting
PiperOrigin-RevId: 696355650
2024-11-21 17:23:40 +00:00
rightnao
0dee06f089 [Carousel] Override onHoverEvent to send correct hover events according to the mask rect, not the MaskableFrameLayout bounds
PiperOrigin-RevId: 696300362
2024-11-21 17:18:59 +00:00
kendricku
c40e8578ad [Button] Update split button chevron overshoot interpolator tension to 1.0 for standard animation.
PiperOrigin-RevId: 696237577
2024-11-21 17:16:59 +00:00
afohrman
699302a823 [FloatingToolbar] Integrated tokens for floating toolbar and add new styles for the horizontal, vertical and vibrant style variations.
PiperOrigin-RevId: 696175995
2024-11-21 17:16:01 +00:00
pfthomas
5bcda8a8d7 [Slider] Add vertical support
- added "orientation" attr allowing for vertical support
- updated tests and doc
- added demo

PiperOrigin-RevId: 695856298
2024-11-21 17:15:02 +00:00
pekingme
7f8d63bb80 [Button] Added sizes and shape support.
PiperOrigin-RevId: 695840723
2024-11-21 17:14:16 +00:00
afohrman
c0231d7d60 [FloatingToolbar] Add motion for horizontal and vertical configurations of the floating toolbar.
PiperOrigin-RevId: 695232457
2024-11-11 13:28:44 -08:00
afohrman
655dba1a48 [FloatingToolbar] Added vertical floating toolbar configuration.
PiperOrigin-RevId: 694362191
2024-11-11 13:27:11 -08:00
Material Design Team
9c1ae33fdb Automated g4 rollback of changelist 694223692
PiperOrigin-RevId: 694359774
2024-11-11 13:25:21 -08:00
hunterstich
7f2b363d8b [BottomSheet] Made the drag handle clickable to cycle through bottom sheet states.
Clicking on the drag handle will now cycle through the available states as an accessible alternative to swiping.

PiperOrigin-RevId: 694223692
2024-11-11 13:17:40 -08:00
afohrman
72e61c948a [FloatingToolbar] Added new Floating Toolbar component with package and updated catalog demo.
PiperOrigin-RevId: 693561861
2024-11-11 10:13:42 -08:00
kendricku
3bb2df80f3 [Button] Migrate trailing icon related resources for SplitButton.
PiperOrigin-RevId: 691793018
2024-10-31 21:56:27 +00:00
kendricku
43a5dd3a97 [Button] Added a new component SplitButton.
PiperOrigin-RevId: 690729978
2024-10-31 21:39:39 +00:00
rightnao
d148048a00 [NavigationRail][a11y] Add a11y announcements for when nav rail is expanded or collapsed
PiperOrigin-RevId: 689858577
2024-10-25 18:54:49 +00:00
rightnao
08c23dc384 [NavigationRail] Navigation rail expansion
PiperOrigin-RevId: 689848271
2024-10-25 18:53:02 +00:00
pfthomas
2e95296eac [Slider] Add support for track icons
- added trackIconActive, trackIconActiveSize and trackIconActiveColor attrs
- added trackIconInactive, trackIconInactiveSize and trackIconInactiveColor attrs
- added tests and demos
- updated documentation

PiperOrigin-RevId: 689804000
2024-10-25 18:51:04 +00:00
rightnao
31fa4122c7 [ExtendedFloatingActionButton] Add a method to ExtendedFloatingActionButton to enable/disable animations.
PiperOrigin-RevId: 688229664
2024-10-22 20:17:25 +00:00