Skip to content

Update dependency com.google.android.material:material to v1.7.0 - autoclosed

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

Compare Source

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:

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)
  • Documentation
    • Updated typography guidelines to M3 (104a342)
    • Added an example to demonstrate how to make bottom sheet dialog in edge-to-edge mode (57a3c98)
    • Updated Snackbar doc regarding CoordinatorLayout (ef2c2fa)
    • Add status bar / edge-to-edge section to Top App Bar doc (b8e1f97)
  • 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)
  • A11y
    • Made multi-selection Chips announce as Buttons (d4c2c95)
    • Made drawer announce its number of items (b1f7d5b)
  • 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)
  • Color
    • Fixed HarmonizedColorsOptions.Builder#setColorAttributes is marked as nullable (824a12b)
  • Transitions / Motion
    • Updated container transform to use new motion system. (f2f454b)
    • Opened MotionUtils and update resolveThemeInterpolator to load both new and legacy easing attributes. (894edb6)
  • Chip
    • Migrated M3 chip styles to new shape system. (3fc53ac)
    • Fixed chip layout not updating when programmatically setting text size (788866e)
  • Snackbar
    • Added shape theming support and update M3 style to use new shapeAppearanceCornerExtraSmall (a717813)
    • Made dismiss direction the same as swipe direction (5b9f27a)
  • TimePicker
    • Properly align text vertically in MaterialTimePicker on S+. (703249d)
    • Migrated to new shape system (f302da7)
    • Fixed restoring hour/minute selection when switch to text mode (72abed0)
  • 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)
  • Divider
    • Fixed lastItemDecorated not being applied to horizontal orientation (92caa19)
    • Fixed extra space when lastItemDecorated = false (714521b)
  • Slider
    • Fixed label visibility when slider is hidden (ed11e69)
    • Updated tooltip shape style to use M3 shape system. (75af80c)
  • MaterialCardView
    • Migrated shape appearance to new shape system. (bfce84a)
  • CollapsingToolbarLayout
    • Added experimental API to allow generic customizations of the StaticLayout.Builder used for the title text (241aa5c)
    • Added ability to set ellipsis on title in CollapsingToolBar (7b043c3)
  • NavigationRail
    • Updated active indicator to use new shape system. (f700e6d)
  • ProgressIndicator
    • Fixed indeterminate progress indicator not working on API 22 (61cbb8c)
  • BottomNavigationView
    • Updated item ripple to be contained within active indicator shape when enabled. (11578b3)
    • Updated active indicator to use new motion system. (1995438)
    • Updated active indicator to new shape system. (9a16aa4)
  • 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)
  • 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)
  • MaterialDatePicker
    • Migrated to new shape system (91a2550)
    • Hide the keyboard when switching to calendar mode (5d6678c)
  • FloatingActionButton
    • Migrated "regular/default" sized styles to new shape system. (25482b1)
    • Migrated "Large" styles to use new shape system. (30bb583)
    • Migrated "Small" styles with new shape system. (acc7569)
    • Updated FAB to use new motion attributes. (934985e)
  • 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)
  • ExtendedFloatingActionButton
    • Updated show and hide motion specs to use motion tokens. (5c0003c)
  • Checkbox
    • Added indeterminate state support to the checkbox. (4da7ce1)
    • Updated checkbox to M3 look. (1666fbc)
    • Added support for error state. (8dd9c7e)
  • Tabs
    • Fixed indicator not updating when a tab to the start/left of the selected tab is removed. (2fc2e6a)
  • NavigationView
    • Update foreground boundaries of menu items when setting a new foreground (4dc3d93)
  • ShapeableImageView
    • Updated to not layer type when view is detached from the window (74b7706)

Full list of changes

Full list of release notes


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Edited by RenovateBot

Merge request reports

Loading