github material-components/material-components-android 1.7.0-alpha03

2 years ago

Important

New minimum requirements for your app project:

What's new

  • New MaterialSwitch component! (Spec)
  • Updated BottomAppBar component (Spec)

Dependency Updates

Dependency Previous version New version
androidx.appcompat 1.4.0 1.5.0-beta01
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)

Library Updates

  • Switch
    • Update to AppCompat 1.5.0-beta01 and remove workarounds (also update compileSdkVersion/targetSdkVersion to 32) (e968929)
    • Tokenize the new switch styles (e9b5328)
    • Refine tinting logic to have better performance (072578d)
    • Add thumb icon tint to the new switch styles (2f33cfc)
    • Add associated text styles (06bba00)
    • Add material switch style to M3 themes (1e08c68)
  • BottomSheet
    • Add drag handle to scrollable demo (f89a91f)
    • Create a drag handle view which support accessibility control (ac7b761)
    • Do not find scrolling child that's not visible (1fe1618)
    • Update javadoc of setHideable() method (132ff88)
    • Fix BottomSheetDialog edge-to-edge mode (2d3024e)
    • Fix BottomSheetDialog edge-to-edge mode (fd8d30d)
    • Fix full-screen dialog layout after restrict expansion is enabled once (109748e)
  • ProgressIndicator
    • Renamed res/animator to res/anim. (04f4a1a)
    • Fix ProgressIndicator's size under a complex measurement (71bfaca)
    • Make progress indicator drawables scalable by setBounds() (69e484d)
  • Catalog
    • Small fixes (51c59fa)
    • Updated Buttons Demo to showcase toggleable icon only buttons. (273554f)
    • Updated checkbox catalog demo to include error state. (0cb355b)
    • Migrate M3 catalog to use the new Switch design (93e53d0)
  • Documentation
    • Add an example to demonstrate how to make bottom sheet dialog edge-to-edge (57a3c98)
    • Update Snackbar doc regarding CoordinatorLayout (ef2c2fa)
    • Update Getting Started Guide with new minimum requirements for 1.7.0-alpha02+ (cdc781d)
  • FloatingActionButton
    • Reorder styles. (5ff3930)
    • Integrate component tokens. (ac5c4df)
    • Combined Small, Regular, and Large styles in one catalog fragment. (ab04c9c)
    • Migrated "regular/default" sized styles to new shape system. (25482b1)
    • Fix the issue that state-list animator cannot be customized (ea12f84)
  • Tokens
    • Integrate component tokens. (2719859)
    • Included parent display group names in the output file comments. (cc317e1)
    • Updated formatter to add an new line between token_set sections for better readability. (cd37b91)
    • Integrated elevation overlay color. (d320d48)
    • Upgraded token resources to v0.99. (d0c3ea0)
  • Snackbar
    • Avoid update layout if bottom margins for anchor view does not change (fd5ee4a)
    • Add defensive null check for messageView.getLayout() in SnackbarContentLayout onMeasure (e981f2f)
  • Slider
    • Fix label visibility when slider is hidden (ed11e69)
  • TopAppBar
    • Add status bar foreground to compress catalog demo. (4e52469)
    • Exclude gone views from scroll range calculation (687e735)
    • Add clearNavigationIconTint() method (c5b37e6)
  • BottomNavigationView
    • Updated item ripple to be contained within active indicator shape when enabled. (11578b3)
  • ExtendedFloatingActionButton
    • Updated show and hide motion specs to use motion tokens. (5c0003c)
  • Checkbox
    • Added support for error state. (8dd9c7e)
  • MaterialButton
    • Add methods to not toggle checked state on buttons on click (a601107)
  • RadioButton
    • Refactored button tint color resource and updated docs (254abc5)
  • TextInputLayout
    • Delete unused paint (b18f45e)
    • Fix "android:enabled" attribute support (15fa4db)
    • Stop saving/restoring TextInputLayout's themeable fields (051410b)
  • CollapsingToolbarLayout
    • Added experimental API to allow generic customizations of the StaticLayout.Builder used for the title text (241aa5c)
  • BottomAppBar
    • Changing default Material3 theme to follow M3 specs (53b3001)
    • Token integration (f2f588a)
    • Add attribute to remove embedded FAB elevation (f2423de)
    • Add fab end margin attribute (88a73eb)
    • Add menu alignment attribute (397e48f)
    • Generated resources from tokens. (4188995)
    • Add new anchor mode attribute for FAB that has an embedded option (cab45dd)
  • Tabs
    • Mutate selected indicator drawable when it's being set (d1895cd)
    • Refine tab update logic from ViewPager adapters (36efca0)
    • Fixed indicator not updating when a tab to the start/left of the selected tab is removed. (2fc2e6a)
  • Transitions / Motion
    • Update documentation with new visual assets. (a9752ee)
  • TimePicker
  • NavigationView
    • Update foreground boundaries of menu items when setting a new foreground (4dc3d93)
  • Divider
    • When lastItemDecorated false then creates a blink with the last view contains a dropdown from visible to gone (03c4353)
  • ShapeableImageView
    • Don't change layer type when view is detached from the window (74b7706)
  • MaterialDatePicker
    • Improve error formatting (be8e4e2)
  • A11y
    • Fix announced Chip count and index (9b1a74b)
  • Chip
  • Other
    • Version 1.7.0-alpha03 (a40f5fa)
    • Automated g4 rollback of changelist 458265064 (34ac0ec)
    • Update guidelines for CollapsingToolbar + PreferenceFragmentCompat (201b4a0)
    • Automated g4 rollback of changelist 457744460 (10ac255)
    • Automated g4 rollback of changelist 458476376 (c49f961)
    • Added support for toggleable Icon buttons. (2d83321)
    • Automated g4 rollback of changelist 457648699 (65a3ac5)
    • Remove unused public.xml resources (cd80b71)
    • Automated g4 rollback of changelist 454163860 (ca2da6c)
    • Automated g4 rollback of changelist 457576897 (7e9045b)
    • Updated translated strings. We know how to say "Cancel" now :) (3fdfb6e)
    • Fixed overlapping of compat shadow of inner corners. (ecb6284)
    • Updated dev doc. (36e204f)
    • Update Appcompat and Emoji2 libraries from aosp-androidx-g3-release with build id #8479725 (eb54d6a)
    • Add glide to catalog dependencies. (8a352fd)
    • Automated g4 rollback of changelist 452075757 (a9a57af)
    • Added isMaterial3DynamicColorApplied attr to identify whether dynamic colors are being used in a theme. (7d0f1ba)
    • Migrated to new shape system. (3db2109)

Full list of changes

1.7.0-alpha02...1.7.0-alpha03

Don't miss a new material-components-android release

NewReleases is sending notifications on new releases.