6346 Commits

Author SHA1 Message Date
pekingme
9c5ccb76ca [Shape] Prevent shape animation from being skipped on bounds change if an animation is running.
In MaterialShapeDrawable#onBoundsChange, only skip shape animation when updating the shape if no corner spring animations are currently running. This allows ongoing animations to continue even when the bounds change.

Resolves https://github.com/material-components/material-components-android/issues/4990
Resolves https://github.com/material-components/material-components-android/pull/4995

PiperOrigin-RevId: 866530904
2026-02-12 22:03:36 +00:00
rightnao
77cabd0cf5 [Catalog] Update Lists demo to re-use viewholder when calling adapter.notifyItemChanged
PiperOrigin-RevId: 864964451
2026-02-03 20:28:42 +00:00
rightnao
ac4f111b90 [Lists] Token integration
PiperOrigin-RevId: 864955412
2026-02-03 20:27:34 +00:00
Material Design Team
0046fdedb7 Automated g4 rollback of changelist 859551741
PiperOrigin-RevId: 862933180
2026-02-03 20:26:47 +00:00
Material Design Team
fb80b899ed [TimePicker] Updating test cases for improved Robolectric handling of number fields.
BEGIN_PUBLIC

Adding ShadowKeyCharacterMap.nativeGetMatch(). Fixes #5110.

This makes it possible to enter text into number fields.

END_PUBLIC

PiperOrigin-RevId: 862805658
2026-02-03 20:23:43 +00:00
rightnao
21060b260e [Lists] Add API to update list shape explicitly
Resolves  https://github.com/material-components/material-components-android/issues/5001

PiperOrigin-RevId: 862337925
2026-02-03 20:22:25 +00:00
Material Design Team
db3298e449 [Search] Implement M3E styles for SearchView
This change implements the Material 3 Expressive styles for SearchView, which includes updated toolbar shape, background color, and paddings.

PiperOrigin-RevId: 861835368
2026-02-03 20:21:29 +00:00
pekingme
eeb036e495 [Release] Update MDC library version to 1.14.0-alpha09.
PiperOrigin-RevId: 861781660
1.14.0-alpha09
2026-01-27 18:31:32 +00:00
pekingme
40d1be5bba [I18n] Updated translation strings.
PiperOrigin-RevId: 861779608
2026-01-27 18:30:09 +00:00
Material Design Team
d227870dc2 [CollapsingToolbarLayout] Fix jumping when multiline title changes while collapsed
When a multiline title changes length (e.g. multi-line to single-line) while collapsed, the layout height decreases. If the previous scroll offset is deeper than the new valid range, the AppBarLayout can jump or get stuck in an invalid state.

This fix forces the AppBarLayout to `PENDING_ACTION_COLLAPSED` if the CollapsingToolbarLayout height changes while fully collapsed. This ensures it snaps correctly to the new collapsed offset.

PiperOrigin-RevId: 861133526
2026-01-27 17:49:54 +00:00
Material Design Team
85c910f0fc [TextInputLayout][A11y] Announce helper text on focus
Merge the helper text into the EditText's content description instead of treating it as a separate element

PiperOrigin-RevId: 860127150
2026-01-23 20:32:08 +00:00
pekingme
57f3cdbda3 [Tokens] Updated token version to 31.0.0
PiperOrigin-RevId: 859699661
2026-01-22 19:49:30 +00:00
Material Design Team
f1193e39c1 [FAB] Override setContentDescription to also set the tooltip text on API 26+
PiperOrigin-RevId: 859551741
2026-01-22 19:48:41 +00:00
leticiars
fa56dd64ce [Button] Add support for a secondary icon.
PiperOrigin-RevId: 859283876
2026-01-22 19:47:49 +00:00
Material Design Team
f49517f7d3 Automated g4 rollback of changelist 859123237
PiperOrigin-RevId: 859205893
2026-01-21 21:21:58 +00:00
Material Design Team
81373b774d [Search] Hide search view divider for M3E
This change hides the divider on search view between the toolbar and content. It prepares for the contained style in Material 3 Expressive.

PiperOrigin-RevId: 859185807
2026-01-21 21:20:15 +00:00
Material Design Team
9b413fcfc4 [Catalog] Make SearchView in Catalog full-screen
This change removes the fitsSystemWindows attribute in the main search demo fragment, which allows the search view to span full-screen, like other demos.

PiperOrigin-RevId: 859163506
2026-01-21 21:14:40 +00:00
leticiars
4bb9acdaa3 [Button] Add support for a secondary icon.
PiperOrigin-RevId: 859123237
2026-01-21 21:13:00 +00:00
rightnao
845a0e385a [Lists] Update state colors for label styles and update demos so ListItemCardView children will duplicate and pass on its parent state
PiperOrigin-RevId: 856272316
2026-01-14 20:57:03 +00:00
rightnao
5cb1500477 [Catalog] Update List docs and demo to be more clear on the primary action triggered corresponding with the growing element in the list swipe for a11y
Resolves https://github.com/material-components/material-components-android/issues/4992

PiperOrigin-RevId: 854315377
2026-01-12 16:17:32 +00:00
pubiqq
58ad14ea94 [TopAppBar] Make letter spacing dependent on text size in CollapsingTextHelper
Resolves https://github.com/material-components/material-components-android/pull/4640

GIT_ORIGIN_REV_ID=587f81fd992281152fb9a0c83ae74d47cde4c3a0
PiperOrigin-RevId: 854203889
2026-01-12 16:16:57 +00:00
dsn5ft
00e5edac88 [i18n] Update string translations
(copyright year + snackbar close button content description)

PiperOrigin-RevId: 853819674
2026-01-12 16:16:19 +00:00
Material Design Team
1fd35bc7e8 [DatePicker] Add tooltips to icon buttons
Adds tooltips to the month navigation buttons in MaterialCalendar and the header toggle button in MaterialDatePicker

PiperOrigin-RevId: 853333712
2026-01-08 18:00:48 +00:00
Material Design Team
67bd159133 [Catalog] Fix initial content description of the navigation drawer toggle in demos
Without calling `syncState()`, the `ActionBarDrawerToggle` defaults to the "Navigate up" description, ignoring the custom "Show navigation drawer" description until the user interacts with the drawer.

PiperOrigin-RevId: 853203850
2026-01-08 17:57:23 +00:00
pekingme
33ff7ce403 [Catalog] Internal cleanup
PiperOrigin-RevId: 852898414
2026-01-08 17:48:57 +00:00
rightnao
4dba971326 [Catalog] Fix MultiSectionListDemoFragment to correctly read view type
Resolves https://github.com/material-components/material-components-android/issues/4987

PiperOrigin-RevId: 852363363
2026-01-05 19:47:20 +00:00
Material Design Team
dd70ef92df [Catalog] Add tooltips to FABs and expand/collapse button
PiperOrigin-RevId: 852252718
2026-01-05 19:46:36 +00:00
rightnao
504300d37e [Lists] Support start/end reveal gravity in ListItemLayout
PiperOrigin-RevId: 846460595
2025-12-19 13:52:24 +00:00
pubiqq
499350d454 [Button] Fix click sound for checkable button
Resolves https://github.com/material-components/material-components-android/pull/4967
Resolves https://github.com/material-components/material-components-android/issues/4966

  - 30f9eff3320dcf06af85b738e9eb49eb43abc096 by pubiqq <serj.ese@gmail.com>

PiperOrigin-RevId: 846358306
2025-12-19 13:50:49 +00:00
Eugene Golushkov
88717fc8d9 [SideSheet] Prevent NullPointerException when viewRef was nullified and only then accessed by runAfterLayout lambda
Resolves https://github.com/material-components/material-components-android/pull/4974

  - 93ab09b1f1591b9b1d1055545325a0f1f6fe08f8 by Eugene Golushkov <e.golushkov@nospam-gmail.com>

PiperOrigin-RevId: 846288956
2025-12-19 13:50:14 +00:00
Material Design Team
71d88f59ee [TimePicker] Fix ClockFaceView cropping in split-screen
Cropping occurred because `ClockFaceView` size calculation ignored parent constraints and radius calculation didn't update on resize.

PiperOrigin-RevId: 846258916
2025-12-19 13:48:16 +00:00
kendricku
cd3f114a3f [Release] Updated minSdkVersion to 23.
PiperOrigin-RevId: 845841935
2025-12-18 15:24:52 +00:00
kendricku
9cc5d57d7b [Release] Update MDC library version to 1.14.0-alpha08.
PiperOrigin-RevId: 845757552
1.14.0-alpha08
2025-12-17 15:22:45 +00:00
dependabot[bot]
8ba9d8bfb0 [Internal][Gradle] (deps): Bump org.jetbrains.kotlin.android from 2.1.21 to 2.2.20 in /catalog
Resolves https://github.com/material-components/material-components-android/pull/4950

  - 7187d69a254f24865f9df901710d5ccec0316cd2 by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

PiperOrigin-RevId: 845744757
2025-12-17 15:14:12 +00:00
hunterstich
71f014fa41 [Snackbar] Added optional close icon
PiperOrigin-RevId: 845256053
2025-12-17 14:23:55 +00:00
rightnao
d5934ee5ba [Lists] Support skipping the open swipe state so clients can go straight to the primary action
PiperOrigin-RevId: 843871144
2025-12-15 13:55:28 +00:00
rightnao
75f0a4e812 [Lists] Add getSwipeState method and demo, and refactored to set necessary swipe elements before drag so they are available for programmatic swipes
PiperOrigin-RevId: 842819821
2025-12-12 12:43:12 +00:00
pekingme
f86cedd44a [Button] Defer icon changes during width animation in MaterialButton.
This change introduces pending states for icon and icon size. When a width animation is active, calls to setIcon and setIconSize are deferred and applied only after the animation completes, preventing layout conflicts.

PiperOrigin-RevId: 840343132
2025-12-08 14:24:26 +00:00
Material Design Team
0b669dab7d [Slider] Adjust thumb-track gap only for the pressed thumb
The gap between the thumb and track is now calculated on the fly for each thumb, considering whether the thumb is currently pressed.

PiperOrigin-RevId: 839683792
2025-12-04 16:46:53 +00:00
rightnao
50bca3279a [Lists] Updates to styles
PiperOrigin-RevId: 837253230
2025-12-02 15:15:27 +00:00
Material Design Team
7fc1c4ff14 [Slider][A11y] Fix D-Pad focus trap on horizontal sliders.
On D-Pad controlled devices like Android TV, pressing up or down on a focused horizontal slider would change its value instead of moving focus to an adjacent UI element. This trapped users in the slider.

This CL fixes the focus trap by removing the key handlers for DPAD_UP and DPAD_DOWN, allowing the Android system to handle focus navigation as expected.

PiperOrigin-RevId: 837044072
2025-12-02 15:14:33 +00:00
rightnao
c24017b4fc [Lists] Create expandable demo
PiperOrigin-RevId: 836818695
2025-12-02 15:09:25 +00:00
leticiars
fb64362c9f [Catalog] Update button demos so all buttons are using the updated styles.
PiperOrigin-RevId: 836761765
2025-12-02 15:07:41 +00:00
rightnao
1dbfdd74d5 [Lists] Make SwipeableListItem and RevealableListItem public and add swipe state callback
PiperOrigin-RevId: 836752108
2025-12-02 15:05:54 +00:00
rightnao
cad79edd74 [List] Update docs
PiperOrigin-RevId: 836747924
2025-12-02 15:02:11 +00:00
Material Design Team
dcd9898640 [DatePicker] Cache isFullscreen state in MaterialCalendar
PiperOrigin-RevId: 836142198
2025-11-24 12:44:22 -08:00
rightnao
93ae7307a0 [Lists] Add styles and theme overlays for material icon buttons inside lists
PiperOrigin-RevId: 834834478
2025-11-24 12:43:02 -08:00
rightnao
6310274b72 [List][Catalog] Address a11y issues
PiperOrigin-RevId: 834524481
2025-11-24 12:42:08 -08:00
Material Design Team
0153138811 [FloatingActionButton] Allow collapsed size to be set.
PiperOrigin-RevId: 834422708
2025-11-24 12:41:08 -08:00
conradchen
6b3be338a8 [Release] Update MDC library version to 1.14.0-alpha07.
PiperOrigin-RevId: 834345589
1.14.0-alpha07
2025-11-19 10:53:13 -08:00