3558 Commits

Author SHA1 Message Date
pekingme
d4ac3d593e [TopAppBar] Fixed the toolbar not snap when switch to freeform windowing.
PiperOrigin-RevId: 715031294
2025-01-14 18:30:22 +00:00
hunterstich
f4342f1eb8 [Motion] Added default style parameter for MotionUtil when resolving theme spring attributes
PiperOrigin-RevId: 714984914
2025-01-14 17:54:18 +00:00
pubiqq
b31711cd9e [Slider] Slider, don't warn about track icons if you don't have any
Resolves https://github.com/material-components/material-components-android/pull/4531

GIT_ORIGIN_REV_ID=4d23fdc773e9ba6fd4d1842be4590bb4417ff32f
PiperOrigin-RevId: 713752392
2025-01-10 15:31:44 +00:00
pekingme
32633a6ff4 [TopAppBar] Applied formatting only.
PiperOrigin-RevId: 713744692
2025-01-10 15:26:13 +00:00
pubiqq
d28488d774 [Slider] Fix label pivots
Resolves https://github.com/material-components/material-components-android/pull/4509

GIT_ORIGIN_REV_ID=a26da16d8389df1de090c737c50c6c1e12f77df8
PiperOrigin-RevId: 713697809
2025-01-10 15:25:12 +00:00
rightnao
7f0a51dae2 [NavigationRail] Fix active indicator label jump when expanding
PiperOrigin-RevId: 713436233
2025-01-09 13:51:02 +00:00
pekingme
57297ae59d [CollapsingToolbarLayout] Added multiple subtitle support.
PiperOrigin-RevId: 713365011
2025-01-09 13:49:55 +00:00
pubiqq
8a4d3c6951 [NavigationBar] Fix early return in setItemGravity()
Resolves https://github.com/material-components/material-components-android/pull/4522

GIT_ORIGIN_REV_ID=3b768005712cd6329b82cbb715e31b5c104000fd
PiperOrigin-RevId: 713321774
2025-01-09 13:48:52 +00:00
kendricku
c1e73c87c1 [SplitButton] Updated Split Button to match spec and address feedback.
Updated padding values on leading and trailing buttons and fixed the trailing icon sizing. Resolved screenshot diffs in the formatting fragment.

PiperOrigin-RevId: 713303721
2025-01-08 18:25:06 +00:00
manabu-nakamura
b4585cdf16 [NavigationRailView] Update comment
Resolves https://github.com/material-components/material-components-android/pull/4493
Resolves https://github.com/material-components/material-components-android/issues/4492

GIT_ORIGIN_REV_ID=63072926609dbb6ef66a18430db60e296202b576
PiperOrigin-RevId: 713025342
2025-01-08 18:22:36 +00:00
pubiqq
80593b2a4e [TimePicker] Fix number format on 24-hour dial
Resolves https://github.com/material-components/material-components-android/pull/4523

GIT_ORIGIN_REV_ID=dcee0b2865bd9c9512b581d34d95aac998cac6a0
PiperOrigin-RevId: 713018088
2025-01-08 18:06:19 +00:00
pubiqq
e6e9385059 [Slider] Fix thumb visibility for vertical slider on API 23
Resolves https://github.com/material-components/material-components-android/pull/4505

GIT_ORIGIN_REV_ID=ed5a3af3ec63ea820651897eac2caa85ece13288
PiperOrigin-RevId: 712937074
2025-01-08 18:04:33 +00:00
pubiqq
9ce14ae3fd [Slider] Refactor track icon tinting
Resolves https://github.com/material-components/material-components-android/pull/4521

GIT_ORIGIN_REV_ID=674feb5f080ee2ea79245b17314d852893ece7d7
PiperOrigin-RevId: 712886599
2025-01-07 14:36:28 +00:00
pekingme
8598aa6ae9 [CollapsingToolbarLayout] Fixed incorrect title and subtitle positioning.
PiperOrigin-RevId: 712776905
2025-01-07 14:33:47 +00:00
rightnao
05f8c52342 [FloatingToolbar] Add inset handling
PiperOrigin-RevId: 712737242
2025-01-07 14:32:21 +00:00
pubiqq
ddda777dda [Slider] Always update track bounds before drawing icons
Resolves https://github.com/material-components/material-components-android/pull/4488

GIT_ORIGIN_REV_ID=0437dc5fd010715429822287ec12a8f77bffbe92
PiperOrigin-RevId: 712658525
2025-01-07 14:24:56 +00:00
rightnao
7f887846b5 [FloatingToolbar] Removed floating toolbar-specific icon button styles from theme overlay
PiperOrigin-RevId: 712607176
2025-01-07 14:12:09 +00:00
Nic Bell
cfe6dce4e9 [Text field] Make highlight text colour respect the theme rather than M3 default
Resolves https://github.com/material-components/material-components-android/pull/4371

GIT_ORIGIN_REV_ID=c7da763ff3620ec96fa7a6982e3ea6be99618ff1
Co-authored-by: kendrickumstattd <kendrick.umstattd@gmail.com>
PiperOrigin-RevId: 711445558
2025-01-02 17:29:31 +00:00
rightnao
b07e48b576 [FloatingToolbar] Update styles to consolidate horizontal/vertical styles to a single style
PiperOrigin-RevId: 709100303
2024-12-26 19:10:58 +00:00
Material Design Team
95025c6728 [BottomSheet] Remove disruptive announcement "Drag handle double tapped"for BottomSheetDragHandleView.
PiperOrigin-RevId: 708956357
2024-12-23 18:56:36 +00:00
rightnao
a7ff8c9006 [Chip] Fix close icon focus ripple
PiperOrigin-RevId: 708446508
2024-12-23 18:55:42 +00:00
hunterstich
59de693346 [Motion] Fixed typo for "spatial"
PiperOrigin-RevId: 708423524
2024-12-23 18:54:42 +00:00
rightnao
94966194fa [NavigationRail] Add divider functionality for expanded nav rail
PiperOrigin-RevId: 708103452
2024-12-20 18:45:43 +00:00
kendricku
08fff9f6f8 [SplitButton] Add chevron drawable AVD to public.
PiperOrigin-RevId: 708019854
2024-12-20 18:44:11 +00:00
rightnao
998fe833e2 [Carousel] Change custom Carousel strategies to be restricted visibility in order to refactor custom strategies
PiperOrigin-RevId: 707143621
2024-12-17 22:56:57 +00:00
rightnao
410f262649 [FloatingToolbar] Set M3 default style
PiperOrigin-RevId: 706756365
2024-12-16 21:54:11 +00:00
hunterstich
98169d21c4 [Motion] Added spring motion subsystem
PiperOrigin-RevId: 705572242
2024-12-16 13:07:30 +00:00
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