Update dependency com.google.android.material:material to v1.7.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
com.google.android.material:material | dependencies | minor |
1.6.1 -> 1.7.0
|
Release Notes
material-components/material-components-android
v1.7.0
What's new since 1.6.1
- All new Switch component with a new look! Check out the updated documentation for details.
- New Shape system that is now being used by all components. Learn about the shape system and see how its used in the Material3 theme and components by checking out the updated documentation
- Checkbox has been redesigned and now supports indeterminate and error states! Check out the updated documentation.
- BottomAppBar has been redesigned! Check out the updated documentation
- New Icon Button support has been added including outlined, tonal, and filled variants!
New minimum requirements for your app's project:
- Update to Android Gradle Plugin (AGP) version 7.2.0
- Update to Gradle version 7.3.3
- Update to Java 8 (version 1.8)
- Update to Android Studio Chipmunk, version 2021.2.1
Dependency Updates
Dependency | Previous version | New version |
---|---|---|
androidx.appcompat | 1.5.0-beta01 | 1.5.0 |
androidx.core | 1.5.0 | 1.6.0 |
androidx.test | 1.1.0 | 1.4.0 |
Android Gradle Plugin (AGP) | 4.0.0 | 7.2.0 |
Gradle | 6.1.1 | 7.3.3 |
Java Version | 1.7 (7) | 1.8 (8) |
Other highlights
-
MaterialButton
- Added methods to not toggle checked state on buttons on click (
a601107
) - Updated M3 button style to add outlined icon button style (
467a2c9
) - Updated M3 button style to add filled tonal icon button style (
14578ed
) - Updated M3 button style to add filled icon button style (
25606cf
) - Fix icon textStart/End alignment with multiline text (
b6b895a
) - Fix icon position with multiline text (
19d0500
)
- Added methods to not toggle checked state on buttons on click (
-
Documentation
-
TopAppBar
- Fixed bug in HeaderScrollingViewBehavior that causes child translation Y not to be reset to default if the behavior is changed from an overlapping to non-overlapping behavior in layoutParams.setBehavior (
00c62d2
) - Excluded views that are GONE from scroll range calculation (
687e735
) - Fixed collapsing title issue with different fonts (
0c341c4
) - Added setLiftOnScrollTargetView() method (
d6c4354
)
- Fixed bug in HeaderScrollingViewBehavior that causes child translation Y not to be reset to default if the behavior is changed from an overlapping to non-overlapping behavior in layoutParams.setBehavior (
-
A11y
-
TextInputLayout
- Added a new custom length counter field and getters/setters to switch how text length is calculated for the counter. (
4ded01e
) - Fixed hint is not displayed when expanding space is limited (
73cb1b6
) - Fixed icon ripples shown behind the edit text (
2c0e42f
) - Updated shapes to use M3 attrs/styles. (
0e4e44e
)
- Added a new custom length counter field and getters/setters to switch how text length is calculated for the counter. (
-
Color
- Fixed HarmonizedColorsOptions.Builder#setColorAttributes is marked as nullable (
824a12b
)
- Fixed HarmonizedColorsOptions.Builder#setColorAttributes is marked as nullable (
-
Transitions / Motion
-
Chip
-
Snackbar
-
TimePicker
-
BottomSheet
- Disable drag handle when restricting expansion (
d4da5b1
) - Handle half-expanded state when drag handle clicked (
f0e6625
) - Created a drag handle view which support accessibility control (
ac7b761
) - Exposed bottom sheet hide friction with get/set methods. (
be1b38c
) - Migrated to to new shape system. (
921868d
)
- Disable drag handle when restricting expansion (
-
Divider
-
Slider
-
MaterialCardView
- Migrated shape appearance to new shape system. (
bfce84a
)
- Migrated shape appearance to new shape system. (
-
CollapsingToolbarLayout
-
NavigationRail
- Updated active indicator to use new shape system. (
f700e6d
)
- Updated active indicator to use new shape system. (
-
ProgressIndicator
- Fixed indeterminate progress indicator not working on API 22 (
61cbb8c
)
- Fixed indeterminate progress indicator not working on API 22 (
-
BottomNavigationView
-
ExposedDropdownMenu
- Added support for default/ripple background colors for the selected item of the exposed dropdown menu when the default MaterialAutoCompleteArrayAdapter is being used. (
6206ff5
)
- Added support for default/ripple background colors for the selected item of the exposed dropdown menu when the default MaterialAutoCompleteArrayAdapter is being used. (
-
Switch
- Update dev doc with the new switch design (
f469720
) - Added thumb icon tint to the new switch styles (
2f33cfc
) - Added associated text styles (
06bba00
) - Added material switch style to M3 themes (
1e08c68
) - Created an icon style for the new switch design (
a3ca744
) - Support tinting thumb & track according to thumb position (
3b257c0
)
- Update dev doc with the new switch design (
-
MaterialDatePicker
-
FloatingActionButton
-
BottomAppBar
- Changed default Material3 theme to follow use BottomAppBar M3 specs (
53b3001
) - Added an attribute to remove embedded FAB elevation (
f2423de
) - Added fab end margin attribute (
88a73eb
) - Added menu alignment attribute (
397e48f
) - Generated resources from tokens. (
4188995
) - Added new anchor mode attribute for FAB for an embedded option (
cab45dd
)
- Changed default Material3 theme to follow use BottomAppBar M3 specs (
-
ExtendedFloatingActionButton
- Updated show and hide motion specs to use motion tokens. (
5c0003c
)
- Updated show and hide motion specs to use motion tokens. (
-
Checkbox
-
Tabs
- Fixed indicator not updating when a tab to the start/left of the selected tab is removed. (
2fc2e6a
)
- Fixed indicator not updating when a tab to the start/left of the selected tab is removed. (
-
NavigationView
- Update foreground boundaries of menu items when setting a new foreground (
4dc3d93
)
- Update foreground boundaries of menu items when setting a new foreground (
-
ShapeableImageView
- Updated to not layer type when view is detached from the window (
74b7706
)
- Updated to not layer type when view is detached from the window (
Full list of changes
Full list of release notes
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by RenovateBot