Releases: material-components/material-components-android
Releases · material-components/material-components-android
1.11.0-alpha02
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 will now use a specific Surface color role which can be more easily understood and customized.
Documentation for the affected components and which Surface color roles they use has been updated in 2114a11.
Dependency Updates
- No dependency updates.
Library Updates
BottomNavigationView
- Set badges to be null instead of removing them from the sparse array so that removing badges before restoring badge states will not override the current state (9f2e686)
Carousel
- Fix issue with next carousel item not being masked properly (a16f180)
- Add a layout listener to recyclerview to refresh keyline state upon size change (ff52862)
- Add carousel alignment attribute (547156e)
- Fix issue with not refreshing keylines (674ec44)
- Fix MaskableFrameLayout not updating mask after size change when setting the mask using setMaskXPercentage. (14023d2)
- Adding docs for fullscreen carousel strategy (7c40359)
Catalog
Chip
- Fix a typo in attributes table in documentation (7289aa6)
Divider
- Add RTL support (6b897c6)
Documentation
Color
- Token upgrade to v0.170 for tonal surface colors. (8204856)
- Update dev docs for tonal surface colors in affected components. (2114a11)
- Add default framework text colors (d3dda60)
- Update contrast documentation (1d3b8e1)
- Add shift to dynamic colors allowlist (fde37cf)
- Expose attr contrastColorThemeOverlay (839b14c)
- Update constructor comments (ba465a2)
Predictive Back
ProgressIndicator
- Allows extending LinearProgressIndicator and CircularProgressIndicator (3b0fd58)
Search
SideSheet
Switch
- Amendments to thumb icon size support (db9a641)
Theming
- Fix swapped error colors for dynamic contrast theme in light mode (f2ccc11)
TopAppBar
Snackbar
- Consistently use window coordinates to calculate Snackbar offsets. In one place screen and window coordinates are mixed, which leads to bad behavior in split screen apps. (57b2663)
Other
Full list of changes
1.11.0-alpha01
1.10.0-alpha05
Important
New minimum requirements for your app's project:
- Update
compileSdkVersion
to34
Dependency Updates
Dependency | Previous version | New version |
---|---|---|
androidx.activity | 1.8.0-alpha05 | 1.8.0-alpha06 |
Library Updates
A11y
- Do not count headers for accessibility (917da52)
Badging
Carousel
- Added orientation helper to clean up CarouselLayoutManager orientation differences (7822ef8)
- Updated docs to include hero variant (ec509cc)
- Added vertical scrolling capability (6b48d3b)
- Deprecated set/get mask x percentages in Maskable as they are no longer used anywhere, and is a misleading method due to these methods not actually having any effect on the Carousel as CarouselLayoutManager overrides the values. (29d8742)
Predictive Back
- Fixed custom predictive back implementations and update
androidx.activity
dependency to1.8.0-alpha06
. (722b936) - Fixed MaterialBackAnimationHelper.onCancelBackProgress being called twice. (ad60bbf)
- Fixed possible NaN crashes in MaterialBottomContainerBackHelper, MaterialMainContainerBackHelper and MaterialSideContainerBackHelper. (122c296)
- Fixed custom predictive back implementations and update
Text Field
- TextInputEditText misses some visible lines in CursorAnchorInfo#getVisibleLineBounds after scrolled (bdef355)
Full list of changes
1.10.0-alpha04
Important
New minimum requirements for your app's project:
- Update
compileSdkVersion
to34
Dependency Updates
Dependency | Previous version | New version |
---|---|---|
compileSdkVersion | android-UpsideDownCake | 34 |
androidx.activity | - | 1.8.0-alpha05 |
androidx.resourceInspectionAnnotation | - | 1.0.1 |
androidx.resourceInspectionProcessor | - | 1.0.1 |
org.jetbrains.kotlin:kotlin-bom | - | 1.8.22 |
Library Updates
BottomSheet
- Updated bottom sheet documentation (af1fa70)
Carousel
- Ensure that masks are pushed out beyond the parent bounds if they are on the parent bounds (9486de5)
- Carousel updates and fixes (16c1575)
- Fixed contained mask logic to only update masks when it is still in view, and remove restrictions on mask size with childWidth/2F. The only restriction is that the right of the mask must be greater than the left of the mask. (7d6a977)
- Fixed multi browse strategy clipping extra small items before being fully collapsed (85b6d50)
- Added Carousel Hero strategy demo (b57dae5)
- Added Hero carousel strategy (340cd44)
Dialog
- Updated DialogWhenLarge theme to have correct parent theme (dae89b7)
Documentation
- Revised version guidance for Search usage. (0bcb570)
Material 3
MaterialButton
- Set up Android Studio resource inspection annotation and annotation processor, and add @Attribute annotation to MaterialButton#getIconPadding (2b5c75f)
MaterialDatePicker
- Allow client app to access user selected inputMode (4d80434)
NavigationRail
,BottomNavigationView
,NavigationView
- Add itemTextAppearanceActiveBoldEnabled attr (022e217)
NavigationRail
- Added bigger padding in between items on the navigation rail when font scale is large so there is more room for the badges when they are forced inside the view bounds (8b016a0)
Predictive Back
SideSheet
- Fixed SideSheetDialog documentation class definition and source links (e4d0fd3)
- Aligned close affordance and title text along the baseline rather than the top. (7a3f30b)
- Mapped close affordance to ?attr/colorOnSurfaceVariant in catalog. (7ee0b72)
- Added links to class definitions in Side Sheet documentation and revised version guidance. (d005ad7)
- Changed side sheet child containers in Catalog from LinearLayouts to FrameLayouts. (690cd5d)
- Changed side sheet title text appearance to Title Large. (a0d4fa0)
TimePicker
- Fixed crash when clicking OK/Cancel/Icon on text input mode due to hiding keyboard (1fcde2c)
Other
- Updated to compileSdkVersion 34 and update catalog to use androidx.activity:activity:1.8.0-alpha05 (2336c23)
- Fix kotlin version alignment (fc6f0a2)
- Update library version to 1.10.0-alpha04 (9123e4f)
- Replaced BuildCompat#isAtLeastU() method calls with explicit SDK checks for UPSIDE_DOWN_CAKE. (f2e70d2)
Full list of changes
1.10.0-alpha03
Important
New minimum requirements for your app's project:
- Update
compileSdkVersion
to"android-UpsideDownCake"
Dependency Updates
Dependency | Previous version | New version |
---|---|---|
appCompat | 1.5.0 | 1.6.1 |
Library Updates
ExposedDropdownMenu
- Added attribute to set dropdown menu's container. (1562d0b)
Color
Carousel
Catalog
MaterialDatePicker
- Fix crash when clicking OK/Cancel on text input mode due to hiding keyboard (7ccf670)
Documentation
- Adds Search class definition link to Search documentation. (e157608)
Search
- Fix expand/collapse animation for non-predictive back cases where rootView bounds are not equal to searchView bounds (577d23e)
SideSheet
Other
- Update library version to 1.10.0-alpha03 (11b8da4)
Full list of changes
1.9.0
What's new since 1.8.0
- Brand new Carousel component! Check out the Carousel design guidance and developer documentation for more details.
- Updated and improved Badge component! Check out the Badge design guidance and developer documentation for more details.
Dependency Updates
- No dependency updates.
Library Updates
Badge
BottomSheet
- Added animation for bottom sheet position when keyboard is shown using WindowInsetsAnimationCompat API (697d93a)
Carousel
Color
SideSheet
Slider
Tokens
- Introduced new accent color tokens. (dac9450)
Full list of changes
Full list of release notes
1.10.0-alpha02
Important
New minimum requirements for your app's project:
- Update
compileSdkVersion
to"android-UpsideDownCake"
Dependency Updates
None
Library Updates
-
Predictive Back
- Add ability to opt-out of back handling in SearchView 176ce5e
- Make back helpers support generified View type 69b5386
- Only use device corner radius if SearchView reaches edge of screen a93c91a
- Update side container back helper to support containers with arbitrary child views 9405121
- Added predictive back support for standard 562285e and modal f335a50 side sheets
- Fixed subtle detached side sheet glitch where after predictive back the sheet did not fully slide off screen 52f1737
- Added handleBackInvoked() predictive back support for coplanar side sheets. b984e64
- Added updateBackProgress() predictive back support for coplanar side sheets 5ba704a
-
Badge
- Added getters/setters for vertical and horizontal badge padding a0d0b53
- Added attribute to automatically adjust badge so that it is within the anchor view's grandparent view's bounds b706506
- Cleanup/fixes 4d50aa4
- Fixed crash caused by non-ascii strings 532b65d
- Fixed table formatting and remove unnecessary badge invalidation 44a97f4
-
Bottom sheet
-
Carousel
-
Color
-
Dialog
- Made dialog background color configurable in XML styles 77cdc1e
-
MaterialDatePicker
- Updated screen width at which days size is 48dp in portrait mode ec511a5
- Fixed time zone when custom text input format is set 619d5a6
- Fixed ContentDescription for "DayName" not properly getting read by talkback for the German language 35bd1fc
- A11y/i18n alignment f4d0f56
- Added getTextColor to DayViewDecorator 29b59c2
-
Navigation View
- Updated NavigationView to use ViewOutlineProvider to handle corner clipping when possible and remove drawerLayoutCornerClippingEnabled attribute c031144
-
Search
- Made SearchBar and SearchView's container colors configurable in XML style cf006c5
- Improve performance by preventing item change notifications during inflation 203d5ec
- Updated search styles to set the default style attributes in the related theme overlay 9ffaa8d
- Support stylus handwriting in SearchBar 884a454
- Fix Search view prefix style e56e9b1
- Updated SearchDemoUtils to mark the class and methods as public so that it can be resued 3b43d41
-
SideSheet
-
Switch
- Added support for setting thumb icon size 2e85f06
-
Tokens
- Upgraded outdated token output in textfield & appbar d722a78
- Integrated tokens and add shape appearance support in bottom navigation view 7bd9724
- Integrated tokens in bottom sheets 86cd9d7
- Integrated tokens and add shapeAppearance attribute in navigation rail 3b2b827
- Integrate container color token in Snackbar 206928b
-
Text fields
- Added API to set cursor colors for API 28+ c598ccd
-
Top App Bar
Full list of changes
1.9.0-rc01
What's new
- Carousel is now available for use in RC!
Dependency Updates
- No dependency updates
Library Updates
Carousel
- Fix item masking for API 21 (3514524)
- Updated MultiBrowseCarouselStrategy to find best arrangments using a cost function (93913a4)
- Fixed mutli-browse catalog demo crashing due to invalid position slider values. (48fd6d2)
- Add support for transitions by forcing canvas clipping when detaching from the window. (88e1688)
Full list of changes
1.10.0-alpha01
Important
New minimum requirements for your app's project:
- Update
compileSdkVersion
to"android-UpsideDownCake"
Dependency Updates
Dependency | Previous version | New version |
---|---|---|
compileSdkVersion | 33 | android-UpsideDownCake |
com.android.tools.build:gradle | 7.2.0 | 7.4.2 |
Library Updates
Predictive Back
- Updated SearchView to support predictive back when set up with SearchBar (a4b6f46)
- Fixed bug where standard hideable bottom sheets don't stay hidden after predictive back (2c23d2a)
- Added top-level developer documentation (8105cb7)
- Updated Bottom Sheet to support predictive back (d6fad95)
- Infrastructure for back handling in components + Navigation Drawer predictive back support (2c297fa)
- Migrated Catalog to use AndroidX back pressed callbacks and enable predictive back-to-home (22c4e0d)
Badging
- Allowed text strings in badges (c1ef52b)
- Center badge content more correctly (fc0de1b)
- Added padding in between top and bottom edges of badge and text (8499b83)
- Fixed doc formatting for github (e75654d)
- Integrated tokens (68c844c)
- Added shape appearance for badges (2ddcfe4)
- Updated badge images (c1eba1b)
BottomAppBar
BottomSheet
- Ignored ACTION_MOVE events in BottomSheetBehavior that weren't preceded by an ACTION_DOWN event. (d8c01c1)
Carousel
- Added support for transitions by forcing canvas clipping when detaching from the window. (93ceb7e)
- Updated MaskableFrameLayout to use Outline path clipping on 33+ only. (43c5077)
- Updated setForceCompatClipping visibility for testing. (3856af1)
- Updated MaskableFrameLayout to clip more performantly. (733c9e0)
- Changed Maskable.add/removeOnMaskChangedListener to Maskable.setOnMaskChangedListener. (359580b)
- Fixed child index bug causing items to be ordered incorrectly. (9d0732b)
Catalog
Checkbox
- Fixed checkmark icon not updating color on error correctly in pre 21. (62aa802)
Chip
Color
- Added U color resources for contrast mode support. (93f386c)
FloatingActionButton
- Correctly handle min touch target size (d6f36e8)
Material 3
MaterialDatePicker
NavigationRail
NavigationView
- Removed canvas clipping by default and added an option to enabled/disable manually (e3b493f)
SideSheet
- Added
LeftSheetDelegate
and left sheet support for standard and coplanar side sheets. (78fa157)
- Added
Tabs
- Fixed issue with indicator not being drawn when viewpager starts scrolling before onLayout is called (34d6a14)
TextInputLayout
- Made collapsed hint aligned with prefix and suffix text (d9b97b4)
TimePicker
- Made dialog container color configurable in xml style. (5f542c8)
Tokens
TopAppBar
Other
- Updated to AGP 7.4.2 to get latest lint and fix Android U lint issues (5a37e4b)
- Updated library version to 1.10.0-alpha01 (c7d31fb)
- Minor fix. (dfbf4d9)
- Upgraded to 7.6.1. (500c8eb)
- Updated gradle-wrapper.jar (bb2716f)
- Updated string translations (5689ce2)
- Updated compileSdkVersion to android-UpsideDownCake (3fb6bb2)
Full list of changes
1.9.0-beta01
Dependency Updates
- No dependency updates.
Library Updates
Badging
Carousel
- Updated MaskableFrameLayout to use Outline path clipping on 33+ only. (14535c5)
- Updated setForceCompatClipping visibility for testing. (b0c1edf)
- Updated MaskableFrameLayout to clip more performantly. (a4669fd)
- Changed Maskable.add/removeOnMaskChangedListener to Maskable.setOnMaskChangedListener. (67956ee)
- Fixed child index bug causing items to be ordered incorrectly. (668f03e)
Documentation
- Fix doc formatting for github (78dd5cc)
Tabs
- Fix issue with indicator not being drawn when viewpager starts scrolling before onLayout is called (a84bd90)