You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Dependency
Previous version
New version
androidx.activity
1.8.0-beta01
1.8.0
Library Updates
Badging
Adjust badge vertical offset for certain components to fit design requirements (78cc54b)
Add 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)
Carousel
Ensure that extra small size is not larger than the large size (17baf71)
Fixed crash when recyclerview has a size of zero. (26c3129)
When navigating with keyboard, scroll focused item to nearest focal keyline, not the first focal keyline (fb9c1c6)
Force hero strategy to be start-aligned if there are not enough items to make it center-aligned (9a2347b)
Add logic for multibrowse strategy to change strategy when number of items is less than the number of keylines (cbb380d)
Fixed focus order when using keyboard navigation for hero carousels. (0356f24)
Cleaning up multi-browse strategy and removing compact arrangement (ed4647d)
Disallowing center aligned hero strategy with only 2 items since it does not make any sense. With only 2 items there can only be a start state and end state with the hero strategy. (d5d604d)
Fix issue with uncontained carousel not having a proper end scroll value due to assumption made in end scroll calculation (8cb444b)
Added tests for hero and multibrowse strategies when the carousel container is very small. (8312162)
Update scroll offset to scroll to the estimated position that it was at upon an initial load (4a6ae4d)
Fixed strategies crashing when there is not enough available space for a large and a small item (c418063)
Fix issue where predictive back is not enabled in NavigationView after rotating the screen or restarting the activity when the NavigationView is already opened as a drawer (bccbd4f)
Search
Set the editable property within SearchBar's AccessibilityNodeInfo representation. (be1395b)
Fix issue where predictive back is not enabled in SearchView after rotating the screen or restarting the activity when the SearchView is already expanded (a51561d)
Version 1.10.0 the Material library depends on AppCompat version 1.6.1, which can trigger an issue with Activity Transitions on Android 14 (see #3644 and http://issuetracker.google.com/issues/300310597 for more details).
Deprecate 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)
Ensure that masks are pushed out beyond the parent bounds if they are on the parent bounds (9486de5)
Fix 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)
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.
Add guidance in fullscreen strategy docs about portrait orientation (caec8d2)
Update chip documentation to use setOnCheckedStateChangeListener instead of setOnCheckedChangeListener which was deprecated in favour of the former (0582b1a)
Update example in docs to use colorContainer and colorOnContainer instead of colorPrimary and colorOnPrimary. (44bfe2d)
Updated Color dev doc with tonal surface colors. (9a4c21d)
Updated dev doc for tonal surface colors in affected components. (2114a11)
Fixing the "Column of Days:" announcement causing Talkback verbosity (a782e7a)
NavigationView
Set material drawable background if the background has been set as a ColorStateList (eba40e9)
Predictive Back
Fix issue where modal accessibility is not reset after collapsing search view predictively, which caused the screen to appear frozen when using TalkBack (8d83a31)
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)
Fix swapped error colors for dynamic contrast theme in light mode (f2ccc11)
TopAppBar
Add getMaterialShapeBackground() to return a MaterialShapeDrawable object of the background (non-lifted layer). (c7a0adf)
Update the handling of liftOnScrollColor not override android:background. (2b476b3)
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
Updating library version to 1.11.0-alpha02 (c04eaba)
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 to 1.8.0-alpha06. (722b936)
Fixed MaterialBackAnimationHelper.onCancelBackProgress being called twice. (ad60bbf)
Fixed possible NaN crashes in MaterialBottomContainerBackHelper, MaterialMainContainerBackHelper and MaterialSideContainerBackHelper. (122c296)
Text Field
TextInputEditText misses some visible lines in CursorAnchorInfo#getVisibleLineBounds after scrolled (bdef355)
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)
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)
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
Updated components to use BackEventCompat (a67a885)
Made MaterialMainContainerBackHelper collapsedView optional (fb56ab4)
Fixed issue on Android U where clicking SearchView back button causes SearchBar to disappear and back arrow animation to not run (e69a324)