update dependency com.google.android.material:material 1.9.0 to v1.13.0
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| com.google.android.material:material | 1.9.0 -> 1.13.0 |
Release Notes
material-components/material-components-android (com.google.android.material:material)
v1.13.0
New in 1.13.0!
DockedToolbarLayout(source, doc, spec)FloatingToolbarLayout(source, doc, spec)LoadingIndicator(source, doc, spec)MaterialSplitButton(source, doc, spec)MaterialButtonGroup(source, doc, spec)
Important
- Required
minSdkVersionis now 21 or higher, for Material and AndroidX. - Now built with
compileSdkVersion35, Android Gradle Plugin (AGP) 8.7.3, Gradle 8.9, andandroid.nonTransitiveRClass=true.- This means that R classes are no longer transitive and resources must be fully qualified with their library path when used programmatically (see the Getting Started guide for more info).
- Material 3 Expressive has moved to the 1.14.0 versions of the library. To get a sneak peak, update to version 1.14.0-alpha04 and use the
Material3Expressivethemes/styles in conjunction with new components mentioned above.
Dependency Updates
| Dependency | Previous version | New version |
|---|---|---|
| androidx.appcompat:appcompat | 1.6.1 | 1.7.0 |
| androidx.constraintlayout:constraintlayout | 2.0.1 | 2.1.0 |
| androidx.dynamicanimation:dynamicanimation | 1.0.0 | 1.1.0 |
| androidx.graphics:graphics-shapes | N/A | 1.0.1 |
| com.android.tools.build:gradle | 7.4.2 | 8.7.3 |
Library Updates
A11y- Include "hour" and "minute" in announcements. For example: "Not checked, Hour - 11'0 clock. double tap to select Hour". (
960bb4c) - Move responsibility of disabling hide on scroll to HideViewOnScrollBehavior and BottomAppBar (
9c33476) - Prevent hide on scroll when Talkback is on (
d560705) - Add missing 'button' mention to Talkback output for close icon. (
79bd7d7)
- Include "hour" and "minute" in announcements. For example: "Not checked, Hour - 11'0 clock. double tap to select Hour". (
BottomNavigationViewBottomSheet- Prevent ACTION_DOWN events on the BottomSheetHandleDragView from setting touchingScrollChild to true. (
af7f254) - Fix keyboard animation on Android 14 (
a0b4dfa) - Fixed main catalog demo cutting off content when screen size is too small. (
005687d) - Remove disruptive announcement "Drag handle double tapped"for BottomSheetDragHandleView. (
95025c6)
- Prevent ACTION_DOWN events on the BottomSheetHandleDragView from setting touchingScrollChild to true. (
CarouselCheckbox- Update translations. (
7711191)
- Update translations. (
ChipCollapsingToolbarLayoutColorDialogDockedToolbarFloatingActionButton- Fix the width calculation in the wrap_content extend strategy (
1e06f7c) - Added medium FAB and s/m/l extended FABs to Material3. (
870ace3) - Restored public jumpDrawablesToCurrentState method (
6f41625) - Fixed wrong elevation per state. (
f513914) - Improved readability. (
949b057) - Fixed wrong elevation per state. (
db7fe20) - Merged FABImpl and FABImplLollipop classes, since no pre-lollipop is supported. (
da442be) - Integrated new token sets. (
4a841f5) - Integrated to new token sets. (
7e63ca1)
- Fix the width calculation in the wrap_content extend strategy (
FloatingToolbar- Added m3 styles for buttons and theme overlays (
4b9df08) - Integrate tokens and add m3 styles (
f223b26) - Fix for insets handling adding insets on every onApplyWindowInsets call (
3938284) - Floating toolbar should not enforce disappear on scroll behaviour within CoordinatorLayouts (
85c4e0f) - Add inset handling (
05f8c52) - Removed floating toolbar-specific icon button styles from theme overlay (
7f88784) - Update styles to consolidate horizontal/vertical styles to a single style (
b07e48b)
- Added m3 styles for buttons and theme overlays (
LoadingIndicatorMaterialButton- Updated the shapes of buttons when the orientation is changed. (
e722464) - Fixed connected button groups to not morph button size. (
df9074c) - Fixed width morph in vertical button groups. (
fb81974) - Fixed a bug that
checkedstate in XML was not respected. (0c5b17a) - Test improve memory usage when materialSizeOverlay is used. (
571a196) - Update split button styles to lessen maker specification requirements and support consistency. (
2aadbd1) - Add a demo to programmatically add/remove buttons in a button group. (
4f55422) - Added a click action and toggleable control in button group demo. (
8e52e94) - Fixed minor issues in button group demo and toggle group demo. (
5161e71) - Added adaptation section in dev doc. (
f61cea5) - Fixed the bug of size morph not working with layout_weight. (
d791fad) - Added optical center feature. (
2667e09) - Updated XML for split button examples in documentation for improved accuracy. (
ede1bdc) - Fixed the content description in distribution demo. (
d54087e) - Fixed the bug of size morph not working with layout_weight. (
b640078) - Added flags to prevent unnecessary updates to child shape. (
ed528c6) - Fixed the translationz value for hovered state of elevated button. (
0c4ed7e) - Cleanup (
8c263bb) - Added PopupMenu to the SplitButton demo. (
7a6866c)
- Updated the shapes of buttons when the orientation is changed. (
MaterialDatePicker- Replace the deprecated announcement API used for month navigation (
6a3d13f) - Fix bug causing undesired screenshot changes (
71bfc93) - Fix accessibility focus landing on first day of month after year selection (
39dd3a4) - Translate fixed a11y announcements. (
9fd5a67) - Fix DatePicker to use correct accessibility description for calendar/year view toggle button. (
41f5079) - Disable next/prev button when the selected month is at the boundary (
71287c6) - Prevent keyboard from automatically showing with TalkBack (
fd2e9bc)
- Replace the deprecated announcement API used for month navigation (
MaterialShapeDrawable- Update ShapeAppearanceModel.Builder to not use extra ContextThemeWrapper for shape appearance overlay due to performance concerns (
990fdb4)
- Update ShapeAppearanceModel.Builder to not use extra ContextThemeWrapper for shape appearance overlay due to performance concerns (
MaterialSplitButtonMenu- Fixed Dark Mode for Context Menu (
93a5130)
- Fixed Dark Mode for Context Menu (
NavigationRail- Force NavigationFrameLayout to be the available size at the minimum (
12fad1d) - Use display cutout and system bar insets for start padding (
4657afb) - Add attributes for expanded active indicator padding (
a798a82) - Fix active indicator label jump when expanding (
7f0a51d) - Add divider functionality for expanded nav rail (
9496619)
- Force NavigationFrameLayout to be the available size at the minimum (
ProgressIndicator- Updated to not throw exceptions for calling
setIndeterminateDrawableandsetDeterminateDrawableduring the initialization. (64867cf) - Added the customization of setting the stop inidcator padding. (
0b89ef4) - Added fraction support in track corner radius. (
2e97dd6) - Added an track inner corner radius API. (
8a23e0d)
- Updated to not throw exceptions for calling
Search- Updating centered search bar text to have 8dp content start and end padding (
4070bef) - Added a clip bounds animation for searchview edit text (
5a600a8) - Add a placeholder textview to Searchbar that keeps track of searchview edit text in order to gracefully fade it out in searchview collapse animation (
be09936) - Update centering layout logic to account for padding and content insets (
c2c660b) - Add cutout insets to SearchView toolbar (
53616ad) - Fix animation calculations for predictive back (
44eabe3) - Fix long centered text overlapping with menu items (
9170221) - Updated SearchBar styling (
3a5861c) - Add maxWidth attribute and fix SearchBar/SearchView animations to be more flexible in hierarchy (
548c15c) - Fix issue with a custom center view pushing out centered text (
04c56f6) - Update demos to demonstrate an example with a ConstraintLayout (
6db122b) - Update catalog demo to optionally show searchbar menu (
e85371f) - Add a lift on scroll color to SearchBar when used with AppBarLayout (
36b285c) - Set alpha for toolbar button directly rather than setting through a FadeThroughDrawable (
e035f38) - Fix centering text when set by the search view (
ea01f2a) - Fix animation when searchbar doesn't cover whole screen (
f7ba9c6) - Add textCentered attribute (
0641ee5) - Fix NPE with hiding navigation icon (
1dc9a1c) - Add a demo with 2 icons outside the searchbar (
9bda9a9)
- Updating centered search bar text to have 8dp content start and end padding (
Shape- Added new attributes in Material3 themes. (
447fd02)
- Added new attributes in Material3 themes. (
Slider- Prevent duplicate accessibility announcements (
bccfdfa) - Get default minTouchTargetSize from material attributes (
422586e) - Fix label bounds for vertical slider in RTL (
23957e0) - Centered Slider updates (
781d344) - Add state description to VirtualView node (
efea65b) - Add centered configuration (
cd909c2) - Add new tick visibility modes (
660423f) - Fixed behaviour when Slider is in a scrolling container (
9302f54) - Improve track icon bounds calculation (
54778a9) - remove unnecessary code (
867fd01) - Slider, don't warn about track icons if you don't have any (
b31711c) - Fix label pivots (
d28488d) - Fix thumb visibility for vertical slider on API 23 (
e6e9385) - Refactor track icon tinting (
9ce14ae) - Always update track bounds before drawing icons (
ddda777)
- Prevent duplicate accessibility announcements (
Tabs- Don't try to detach an already detached TabLayout (
7144370)
- Don't try to detach an already detached TabLayout (
TextInputLayoutTimePickerTokensTopAppBar- Fix Extended FAB behavior demo to shrink and extend as expected. (
13cdaba) - Add attribute to center based on whole container (
dcfbdff) - Update AppCompat dependency to 1.7.0 stable and remove inflateMenu dispatch pausing now that the fix has landed in AppCompat (
09d2566) - Overrode the colorControlHighlight to reflect the Material state layer. (
33b1c33) - Expose toolbar customization attributes (
b8af518) - Fixed the toolbar not snap when switch to freeform windowing. (
d4ac3d5) - Applied formatting only. (
32633a6) - Added a demo to show case using collapsing toolbar layout with a toggleable button; reduced the number of menu items in all demos. (
8726702)
- Fix Extended FAB behavior demo to shrink and extend as expected. (
Transitions / MotionTypography- Added emphasized typescale to public attributes (
0c1a914)
- Added emphasized typescale to public attributes (
Catalog- Update NavRail description in catalog (
28be49d) - Fix BottomWindowInsetView (
8699fe8) - Added an onDismissListener to the popup menu to synchronize menu display and button checked state. (
bb90b20) - Fix crash occurring with all the adaptive demos (
1125655) - Migrated builds to use a version catalog (
4662301) - Add demo for 3 item docked toolbar demo (
d51f8c9) - A11y fixes for floating and docked toolbar (
b085829) - Added the button group distribution demo in catalog. (
828c932) - Create docked toolbar demo in M3 catalog (
a82391a) - listener is added again after rotating device (
6a7c034)
- Update NavRail description in catalog (
Other- Remove Expressive from 1.13 releases, so we can get 1.13 to stable faster (#4803) (
27226d6) - Add a method to get the HideViewOnScrollBehavior associated with the view (
0f5974a) - Fix the target position of the view when sliding it off the screen without animation (
def80c5) - Updated compileSdkVersion to 35 (
62f8561) - Moved component inclusion into afterEvaluation block (
27f0cd7) - Moved back to Java 8 source and target compatibility (
a8d492c) - Enable non transitive R classes (resource namespacing) and fix errors (
0697f6f) - Updated to AGP 8.7.3, Gradle 8.9, Java 21 (
2c2a26c) - Updated string translations (
9f52851) - Replace getVersion gradle task (
94b575c) - Updated translated string resources. (
9a2890c) - Added additional shape appearance styles in public.xml (
29be993)
- Remove Expressive from 1.13 releases, so we can get 1.13 to stable faster (#4803) (
Full list of release notes
- 1.13.0-alpha01
- 1.13.0-alpha02
- 1.13.0-alpha03
- 1.13.0-alpha04
- 1.13.0-alpha05
- 1.13.0-alpha06
- 1.13.0-alpha07
- 1.13.0-alpha08
- 1.13.0-alpha09
- 1.13.0-alpha10
- 1.13.0-alpha11
- 1.13.0-alpha12
- 1.13.0-alpha13
- 1.13.0-alpha14
- 1.13.0-beta01
- 1.13.0-rc01
Full list of changes
v1.12.0
What's new since 1.11.0
SliderandProgress Indicatorhave been updated to better support Non-Text Contrast Accessibility requirements.- Predictive Back Fragment/View support added to Material motion transitions (
MaterialSharedAxis,MaterialFadeThrough,MaterialFade,MaterialElevationScale).
Important
Required minSdkVersion is now 19 or higher, for Material and AndroidX (blog post).
Dependency Updates
| Dependency | Previous version | New version |
|---|---|---|
| androidx.transition | 1.2.0 | 1.5.0 |
Library Updates
GradleCarousel- Shifted keylines in contained strategies when there exists padding, and clipToPadding=false (
1ef42e2) - Fixed Javadoc formatting error in
FullScreenCarouselStrategyclass documentation. (a0a1c6e) - Added support for cross axis wrap_content RecyclerViews (
e88a1b9) - Added documentation recommending snapping for multi-browse strategy (
9e64a1f) - Add attributes to change small item size (
92a5444)
- Shifted keylines in contained strategies when there exists padding, and clipToPadding=false (
CollapsingToolbarLayout- Fix text shadow fading when transitioning between expanded and collapsed states (
7674e12)
- Fix text shadow fading when transitioning between expanded and collapsed states (
Checkbox- Updated string translations (
198e08c)
- Updated string translations (
Dialog- Unified scrim opacity in Material themes/theme overlays. (
f3e4439)
- Unified scrim opacity in Material themes/theme overlays. (
Divider- Fixed divider instantly appearing or disappearing on insertion or removal (
ef4a0c5)
- Fixed divider instantly appearing or disappearing on insertion or removal (
i18n- Update translated strings (
a8307ef)
- Update translated strings (
MaterialDatePicker- Fix date validation on Samsung devices (
5aa6edf)
- Fix date validation on Samsung devices (
MaterialAutoCompleteTextView- Enabled switch access in MaterialAutoCompleteTextView. (
14a7b40)
- Enabled switch access in MaterialAutoCompleteTextView. (
NavigationDrawer- Fixed wrong item selected after click (
a3af20a)
- Fixed wrong item selected after click (
NavigationRailPredictive Back- Animated corners during predictive back when no drawerLayoutCornerSize is set (
c8b9b1c)
- Animated corners during predictive back when no drawerLayoutCornerSize is set (
ProgressIndicator- Updated inactive track color from primary container to secondary container. (
c8cb0c6) - Updated the setter of track thickness to not update track corner radius. (
540f5ee) - Added the limit to not have stop indicator size bigger than track thickness. (
689e04f) - Fixed the rounded ends overlapping bug with semi-transparent track/indicator color in Circular default style. (
8167c11) - Removed the call to draw a transparent full track. (
3f80fdb) - Flipped the canvas for different circular directions. (
bcc27a3) - Split stop indicator drawing from indicator drawing. (
76207cb) - Added ActiveIndicator to improve readability. (
6fd920a) - Fixed ESCAPE animation in linear and added ESCAPE animation in circular. (
98284e7) - Updated to use the same drawing delegate object between determinate drawable and indeterminate drawable to prevent inconsistent drawings when specs update. (
52b4845) - Added missing graphics updates when spec changes. (
93b3010) - Update styles for new Accessibility updates (
15b533f) - Added static drawable for Circular type when system animator is disabled. (
22e054b)
- Updated inactive track color from primary container to secondary container. (
SearchSideSheet- Moved the modal side sheet default width/height into style so they can be customized
- Updated string translations (
198e08c)
Slider- Made tick size defaults to the stop indicator size if set (
92bc02c) - Fixed incorrect style of stop indicators near handles (
d61cffd) - Resolved issues that crash when assigning a large value to
valueTo(4d1b9e5) - Updated the track drawing for some corner cases. (
10484df) - Fixed ripple not transparent on API 33 (
cd4f618) - Updated documentation (
a641e18) - Updated styles (
c218b3c)(3b278d7) - Fixed slider label not moving while scrolling (
144b515)
- Made tick size defaults to the stop indicator size if set (
Tabs- Fixed title being announced twice when there's a badge in TalkBack mode. (
aaa7034)
- Fixed title being announced twice when there's a badge in TalkBack mode. (
ThemingTokensTopAppBarTextInputLayoutTransitions / Motion- Updated androidx transition dep to version 1.5.0-beta01 (
8c63848) - Added predictive fade through fragment transition demo to Catalog. (
6092a7d) - Added titles to fade through demo fragments in Catalog. (
104043c) - Added predictive transition support for fragments and views to the Material motion library, and enabled it in shared axis fragment transition demo. (
8ccec33)
- Updated androidx transition dep to version 1.5.0-beta01 (
Full list of release notes
Full list of changes
v1.11.0
Important
Elevation Overlays within default component styles have been replaced by the new Tonal Surface Color system. Instead of blending the Primary color with the Surface color based on an elevation value, components now use a specific Surface color role that can be more easily understood and customized.
Documentation for the affected components and which Surface color roles they use has been updated in 2114a11.
What's new since 1.10.0
- New Tonal Surface Color system! Check out the design guidance and the commit with documentation updates for more details.
- New Carousel variants! 1.11.0 introduces three new Carousel variants: center-aligned hero, uncontained, and fullscreen. Check out the Carousel documentation for more details.
Dependency Updates
None.
Note: Earlier versions of 1.11.0 used other versions of the androidx.activity 1.8.0 library dependency, but there is no change in the dependency from 1.10.0, the last stable MDC library version.
Library Updates
Badging- Adjusted badge vertical offset for certain components to fit design requirements (
78cc54b) - Added note in attachBadgeDrawable method docs about menu item views being re-used when there is a structural change in the menu. Since badges are attached to the views, this may change the menu item that the badge is intended for ([
5e6ea58](https://redirect.github.com/materi
- Adjusted badge vertical offset for certain components to fit design requirements (
Configuration
📅 Schedule: Branch creation - "on friday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.