github material-components/material-components-android 1.5.0-alpha03

3 years ago

Dependency Updates

Dependency Previous version New version
compileSdkVersion 30 31
targetSdkVersion 29 31
annotation 1.0.1 1.2.0

Library Updates

Highlight: Early access preview of Material 3

This release includes a preview of the new Material library.

New Material 3 themes and many updated component styles have been added. More to come in future releases!

Important:

  1. Make sure to update your app's compileSdkVersion to 31 when using this version of the library.
  2. If using the new DynamicColors.java util class to apply dynamic colors on Android 12, make sure to update your app to depend on AndroidX Core version 1.6.0 or later (e.g., androidx.core:core:1.6.0) (#2353).

Changes

  • Material 3 (new!)
    • Create M3 themes (27757d0)
    • Create M3 Top App Bar styles (18490ff)
    • Create M3 Bottom Navigation (Navigation Bar) styles (999b247)
    • Create M3 regular FAB styles (b06977b)
    • Create M3 large FAB styles (ca8f4cb)
    • Create M3 Extended FAB styles (6ba1a92)
    • Create M3 Button styles (6bfa584)
    • Create M3 Chip styles (7f597a7)
    • Create M3 Tabs styles (60782a5)
    • Create M3 Bottom App Bar styles (167b198)
    • Create M3 Date Picker styles (2901012)
    • Create M3 Time Picker styles (a1d09ac)
    • Create M3 Menu styles (0998e9d)
    • Create M3 Switch styles (906fb2d)
    • Create M3 Checkbox styles (4e0d5b0)
    • Create M3 Radio Button styles (a342adc)
    • Create M3 Text Field styles (edbc4e1)
    • Create M3 Slider styles (0064aa1)
    • Create M3 Card styles (e5fb9d1)
    • Create M3 Badge styles (786e6b5)
    • Create M3 Tooltip styles (a7cb1f0)
    • Create M3 Divider styles (fabb5ea)
    • Split dynamic color token resources into values-v31 (8357c9a)
    • Chip style updates (492e37f)
    • Update Color dev doc to M3 (687505e)
    • Create SurfaceColors class in M3 (27e7b00)
    • Reorganize styles (ebacf79)
    • Reorganize resources. (f2eaf0c)
    • Use colorPrimary for elevation overlay color for both baseline and dynamic (1cf724b)
    • Integrated Tokens shape resources. (585fd8d)
    • Integrated Tokens motion resources. (083f01d)
    • Integrated Tokens state layer resources. (d1fb3f9)
    • Integrated Tokens elevation resources. (3caa9cd)
    • Integrated Tokens system resources. (293457c)
    • Integrated Tokens color system resources. (0995f99)
    • Create dynamic color support in M3 (febe257)
    • Fixed collapsing toolbar collapsed title text appearance (cb74134)
    • Update Font catalog demo to use new typescale. (7bcb917)
    • Updated text appearance mappings (a461de5)
    • Fixed styling in themes due to bad merge (0c6f435)
    • Updated ref colors, background/surface color, and error color. (23c9f27)
    • Updated colorPrimaryDark to point to colorPrimary (f428f20)
    • Set up elevation overlays and colors in themes + theme overlays (b9e5797)
    • Removed disabled color theme attrs (17a459a)
    • Create M3 ripple alpha resources (04b06ae)
    • Update compileSdkVersion to 31 - Android S (40509dc)
    • Add new typography system TextAppearance styles and set attrs in theme. (baf55ec)
    • Define new typography system theme attributes. (beb51dc)
    • Define new color system theme attributes (1ed1c29)
    • Update Dark dialog theme to have correct dark dynamic color theme overlay (c369128)
    • Updated some Catalog demo references to Material3 styles (e776908)
    • Update Catalog naming to Material 3 (ae20031)
    • Update Catalog theme(s) to Material3 and fix Material3 date/time picker theme overlays (5d940f1)
  • Documentation
    • Full list of components link is broken (2257156)
    • Added class description links to progress indicator doc. (e019c82)
    • Updated bottom sheet doc. (104337f)
    • Fixed content link in divider doc (4df4d56)
  • TextInputLayout
    • Adding getter and setter for boxCollapsedPaddingTop (cdeeb82)
    • fix counterTextColor java docs (10edc29)
  • TimePicker
    • Clean-up TextApprearance overriding (2dfa3d6)
    • Add some defensive null checks for internal views (45f4fa0)
  • AppBarLayout
    • Make it possible to disable app bars' shadow (a682ab0)
  • Tabs
    • Make secondary style change label color when selected (804cd60)
    • Fix icon tint not applied on lower SDKs (126df4c)
  • CollapsingToolbarLayout
    • Fix expanded height incorrect after rotation (ec3f96c)
  • Catalog
    • Adding android:exported to catalog main activity. (7abf166)
    • update FAB demos (5e98a05)
    • Music player demo updates. (864ef02)
    • Fixed filled text field demo style (fb522a5)
  • Theming
    • Add isMaterial3Theme attr and set to true in 4 main Material3 themes (8670643)
  • Badging
    • Move badge assets into directory to be consistent with other components, and delete unused image (760effb)
  • Chip
  • MaterialButton
    • Material button lollipop shape fix (153fdee)
  • Other
    • Version 1.5.0-alpha03 (05a64e8)
    • Fixed menu visibility changes causing active indicator flashing. (619c95c)
    • Internal change (8968255)
    • Updated targetSdkVersion to 31. (b24e802)
    • Fix toolbar menu arrow not visible (8123c63)
    • Update documentation (267da10)

Full list of changes

1.5.0-alpha02...1.5.0-alpha03

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

NewReleases is sending notifications on new releases.