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.
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 (78cc54b8c39da437732ff3d7c96de8f345e09348)
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 (5e6ea582801ebfe2af8457261581a2ad43c8051a)
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 (9f2e6864d2170d633709e7aa66b9e8e178352ef0)
Ensure that extra small size is not larger than the large size (17baf71972016cf4608d9c83b902bb2debee585b)
Fixed crash when recyclerview has a size of zero. (26c31292012868d7e9889f6ecee7559c61caa5b2)
When navigating with keyboard, scroll focused item to nearest focal keyline, not the first focal keyline (fb9c1c6edfbdbe4791043a128c03a7fad5fd99f0)
Force hero strategy to be start-aligned if there are not enough items to make it center-aligned (9a2347bda5312dd6dc3ab7818a6f71297dcf018b)
Add logic for multibrowse strategy to change strategy when number of items is less than the number of keylines (cbb380df61f8eb66273043b437582c8058df7088)
Fixed focus order when using keyboard navigation for hero carousels. (0356f24a63b5c47ee23cbf5c0fca4d817e4d6acd)
Cleaning up multi-browse strategy and removing compact arrangement (ed4647d5dfa42876063521546de2dbcf71914e01)
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. (d5d604d0ccfd73b4345dbea8fd3f833410fd2958)
Fix issue with uncontained carousel not having a proper end scroll value due to assumption made in end scroll calculation (8cb444b26856fdb8b0c894eccbf90133efc2a2b6)
Added tests for hero and multibrowse strategies when the carousel container is very small. (8312162f533d1c9fc9e9b15ceca58e3d1d4b61b5)
Update scroll offset to scroll to the estimated position that it was at upon an initial load (4a6ae4d0b6969311b41b3878e3c0e7f7a0824a72)
Fixed strategies crashing when there is not enough available space for a large and a small item (c418063205d74233a6235d7f7fd39be7deeb4bc7)
Tweak uncontained strategy logic to adjust medium size items to improve motion (93660d424139642320c85a098f0fb728126d4838)
Fixed formatted for KeylineState and KeylineStateList (b80d9a5ef4d93567554d5aac85c4070b4577d9fc)
Fixed keyline shifting in RTL for uncontained carousels (71517147110227e8032f5b064d6b59c5e3f117de)
Reduce the number of truncations in intermediate calculations (4ce7e4c8fa84ce05a6c34591855dd1207e44e42b)
Update vertical scroll speed to be faster (c6ea2d404023ca1a92cb95eb3f177579df1c2d28)
Fix some a11y bugs in Carousel (3d84841caddd6e0127e67721844a3900225ab3a9)
Center aligned uncontained carousel (b6f6eb555a0477322aa1ab4115f90d74d25a2266)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps com.google.android.material:material from 1.10.0 to 1.11.0.
Release notes
Sourced from com.google.android.material:material's releases.
... (truncated)
Commits
967e682
[Release] Updated library version to 1.11.0.8bf55e7
[Release] Update library version to 1.11.0-rc014b669c1
[Release] Bump MDC library version to 1.11.0-beta01541df07
[Color] Delete unused contrast resourcesad63d3f
[M3][Color] Introduce U color tokens2590c42
[TextInputLayout] Fix editText paddings on pre-Lollipop17baf71
[Carousel] Ensure that extra small size is not larger than the large sizead2b5f8
[Docs][Predictive Back] Add note to clarify that automatic back handling in c...2c53952
[Catalog][BottomSheet] Use BottomSheetDialogFragment26c3129
[Carousel] Fixed crash when recyclerview has a size of zero.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show