Skip to content

Releases: material-components/material-components-android

1.6.0-alpha02

18 Jan 21:52
Compare
Choose a tag to compare

Dependency Updates

Dependency Previous version New version
androidx.fragment 1.0.0 1.2.5

Library Updates

  • Material 3
    • Migrate action bar popup themes to M3 (2ae3ca4)
    • Add additional condition to check dynamic color supported devices (c6527d1)
    • Add supporting brand list of dynamic colors (b2f05d5)
  • TextInputLayout
    • Speedup simple inflate. (26d862b)
    • Apply edit text's letter spacing to expanded hints (88eb089)
    • Refine the hint cutout logic (79b2c3d)
    • Text field should comply with system level bold (e8bde75)
  • MaterialDatePicker
    • Replace fragment container with FragmentContainerView (e7bc947)
    • Fix wrong month title with certain months (62e8993)
  • Dialog
    • Add date and time picker themes to M3 dialog themes (8342f90)
    • Fix dialog icon color tint (246b340)
    • Fix dialog paddings (672e744)
    • Start-align message text with centered styles (9980596)
  • Badging
    • Refactor Badge state managing logic (bbbeacd)
    • Support different locale on badges (b8f2dd5)
  • TopAppBar
    • Save and restore scroll state during scroll range recalculation (698cf9b)
    • Fix top app bar snapping issue (acb7958)
  • Snackbar
    • Enforce vertical layout when action text is too long (ff97a68)
    • Fix NPE on Android 8 & 9 (35d9da8)
    • Fix maxWidth is not applied on Snackbar (6a3ea94)
  • A11y
    • Make dialog icon not important for accessibility (8bc6420)
    • Make Talkback announce selected state for clock items (fcc68a2)
  • Color
    • Avoid Short#compare usage in ColorResourcesTableCreator.java since it requires API level 19 (48741b4)
    • Set android:windowBackground to android:colorBackground (dac9bf3)
    • Add additional condition to check dynamic color supported devices (833f410)
    • Add Resource Table format for XML color Harmonization. (822a5b2)
  • Divider
    • Added attribute in MaterialDividerItemDecoration to remove item decoration from last recycler view item. (9416b2c)
  • Tabs
    • Added fade indicator animation mode. (a295de9)
    • Added tab demo for fade mode indicator animation. (1beedec)
  • MaterialButton
    • Support icon gravity with text alignments other than centered (6c41f07)
  • Slider
    • Fix lint error caused by hidden super interface (3cf0647)
  • Tokens
    • Upgrade M3 token resources to v0.71 (4de8565)
  • Documentation
    • Update library version in Getting Started doc to 1.5.0 (e98cee5)
  • Catalog
  • Other
    • Update library version to 1.6.0-alpha02 (80e50de)
    • Replace all jcenter with mavenCentral (ad97f01)
    • Horizontally center the checkbox button drawable if there is no text (8f4837e)
    • Fix drawables not applying system level bold (90787bf)
    • Simplify MaterialButtonToggleGroup's checking logic (3db25be)
    • Remove paddingTopSystemWindowInsets from flags checked to apply windowInsetListener (2e73d1a)

Full list of changes

1.6.0-alpha01...1.6.0-alpha02

1.5.0

13 Jan 17:07
Compare
Choose a tag to compare

What's new since 1.4.0

Other highlights

  • Badging
    • Added support for differing offsets for badges with/without text, and support for badge width and padding in styles. (bd4914d)
  • BottomAppBar
    • Added attr to set the color of navigation icon. (0ed7c76)
    • Added support for showing/hiding immediately (34740b6)
  • BottomNavigationView
    • Updated to explicitly read and set minimum height. (943c4f0)
  • BottomSheet
    • Added maxHeight to bottom sheet behavior (a38d2d8)
  • Chip
    • Fixed icon tint states are not updated after setting new icon (c08a07d)
  • CollapsingToolbarLayout
    • Added option to add extra height when title text spans across multiple lines (655dde0)
    • Added option to force always applying system window inset top regardless of layout_height (9ebf1a1)
    • Fixed multiline RTL collapsed title text position (af35dfb)
    • Added support for expanded and collapsed title text color attributes (5c14772)
    • Fixed RTL text only laying out as RTL when actual text is RTL (841f229)
    • Added title line spacing and hyphenation frequency setters (f0ce498)
    • Added support for multiline RTL when using fade title mode (f0ac362)
    • Updated default multiline hyphenation frequency to StaticLayout.HYPHENATION_FREQUENCY_NORMAL (3ad232d)
  • MaterialButton
    • Updated Material Button style to set the preferred maximum width to 320dp. (c5c7a74)
    • Fixed MaterialButton lollipop shape issue (153fdee)
  • MaterialDatePicker
    • Avoided NPE caused by getSelection() before created (cb5d622)
    • Fixed opening at the selected date in the end month (eb7b114)
    • Fixed DatePicker crashes and and potential issue of range selection (281688a)
    • Fixed excessive whitespace (8fda897)
  • Snackbar
    • Handled anchor view properly so no memory leak will happen (58ceeab)
    • Fixed memory leak caused by not resetting anchor views (b0558dc)
    • Fixed maxWidth and maxInlineActionWidth are not applied (8729d8a, 15e2254)
  • TextInputLayout
    • Applied tint when setting start icons (4044183)
    • Made clear text icon focusable (8a4f42a)
    • Added a fade transition to placeholder TextView's appear and disappear. (c92e693)
    • Fixed cutout padding so text field outline doesn't overlap collapsed hint. (87b50c6)
  • TimePicker
    • Hid cancel button when it's not cancelable (35c2af3)
    • Updated accessibility event sending when updating input mode (00c0df9)
    • Added ability to customize positive and negative button (168c691)

Dependency Updates

Dependency Previous version New version
compileSdkVersion 30 31
targetSdkVersion 29 31
androidx.annotation 1.0.1 1.2.0
androidx.drawerlayout N/A 1.1.1

Full list of changes

1.4.0...1.5.0

Full list of release notes

1.5.0-rc01

13 Dec 17:18
Compare
Choose a tag to compare

Dependency Updates

  • No dependency updates

Library Updates

  • Material 3
    • Add supporting brand list of dynamic colors (66b1c0e)
    • Update M3 card elevation according to the spec (91f1f2e)
    • Add missing attributes to M3 button styles (55a67a6)
    • Update Button elevation to match specs (835624e)
    • Update Button padding to match specs (0ac68ec)
    • Update M3 navigation rail text appearances (db5b3d4)
    • Do not enforce text appearance with Tab M3 styles (7975920)
    • Fix M3 date picker styles (1579272)
  • Chip
    • Add missing attributes to M3 chip styles (d95ad41)
  • Dialog
    • Start-align message text with centered styles (287858a)
    • Enforce material theme in M3 dialog styles (4d12f80)
  • BottomNavigationView
    • Set backgroundTint explicity to @null in M3 bottom navigation syles (f44d001)
  • Snackbar
    • Fix maxWidth is not applied on Snackbar (15e2254)
  • Color
    • Add additional condition to check dynamic color supported devices (817dc12)
  • Other
    • Update library release version to 1.5.0-rc01 (f14d1a2)

Full list of changes

1.5.0-beta01...1.5.0-rc01

1.6.0-alpha01

29 Nov 21:45
Compare
Choose a tag to compare

Dependency Updates

  • No dependency updates

Library Updates

  • Material 3
    • Update M3 card elevation according to the spec (bb23e2d)
    • Add missing attributes to M3 button styles (3c9b452)
    • Update elevation to match specs (db64adb)
    • Update padding to match specs (f028380)
    • Update M3 navigation rail text appearances (6b57c52)
    • Do not enforce text appearance with M3 styles (04a6b6c)
    • Fix M3 date picker styles (fba1a34)
    • Change checkedIconGravity values to enum (bc56d5b)
    • Add supporting manufacturer list of dynamic colors (e5023f6)
    • Add textAppearanceListItem* styles to theme (bed2ac1)
  • A11y
    • Improved accessibility for switch access. (2d337c5)
    • collapsing toolbar layout not respecting system level bold (65754bd)
    • accessibilityManager.isEnabled() is not reliable to check if component is in a11y mode, as it may return true unexpectedly. (b878fc3)
    • Fix Talkback doesn't announce minutes selection (c07e5f2)
    • Make Talkback announce action on clock items (38406e1)
    • Fixed dropdown list not showing for non editable dropdown menus in switch access mode. (d8e19dd)
    • Fixed RTL support for setting corner radius on TextInputLayout. (dca7fc0)
    • Fix system level bold not applied (c6be59c)
    • Removed TextInputLayout's placeholder text duplicated announcement. (20c3ad0)
  • Documentation
    • Added note about screen readers skipping decorative text field elements. (a369449)
    • Add migration codelab and M2 -> M3 theme mapping to Getting Started doc (05a74bd)
    • Removed broken links from divider doc. (3b6c804)
    • Reformatted color.md. (735b88e)
    • Update Getting Started doc to link to Material Theme Builder (255cc17)
    • Small typo fix in checkbox doc (2b441e6)
  • TextInputLayout
    • Remove unneeded logic (1d50ed7)
    • Fix crashes when text field size is too large (cf5df22)
    • Correctly calculate hint text offset (34cce18)
    • Fixed calculateLabelMarginTop() value for filled text field style, which caused getBaseline() to return a wrong offset. (c7c5c7c)
    • Fix helper text label for usage (aaac96d)
    • Fixed getBoxCornerRadiusBottomEnd and getBoxCornerRadiusBottomStart returning wrong values. (9d2f864)
    • Fixed shouldAnimateCaptionView() returning true when captionText is null. (c352dfd)
    • Don't add placeholder view to text field's input frame if placeholder is null. (3ca3b71)
  • Color
    • Added Color Scheme demo in Catalog. (f898ba8)
    • Move dynamic color public resources to all versions (a455a53)
    • Refactored and added the Dynamic Color Palette demo in Catalog. (b808484)
  • Catalog
    • Added update button to customizable text fields. (a3b5440)
    • Add example of Preferences screen with Top App Bar (83edbc4)
  • TopAppBar
    • Fix expanded title margin not applied (89d80d0)
    • Correctly set letter spacing when expanding titles (44d4c3e)
    • Fix text alignment of multi-line title in collapsing toolbar (e6db8a4)
    • Fix snap issue with transparent status bar (b935604)
  • MaterialDatePicker
    • Wrapped text fields from range picker selection in a ScrollView so their heights don't change in landscape mode. (9b5356f)
    • added methods to use custom text for positive and negative button (b2fbace)
  • Chip
    • Add missing attributes to M3 chip styles (cc18f3f)
    • Add input chip elevated styles to public (e9ec82f)
    • Update M3 chip styles with spec (8ed0ac9)
  • MaterialCardView
    • Fix checked icon gravity issues (283715d)
    • Added option to set the checkedIcon gravity (250d56d)
  • Tabs
    • Fix NPE caused by set a position less than 0 (823c34a)
  • Dialog
    • Enforce material theme in M3 dialog styles (728a1e6)
  • BottomNavigationView
    • Set backgroundTint explicity to @null in M3 bottom navigation syles (adbcf8c)
  • MaterialShapeDrawable
  • Other
    • update library version to 1.6.0-alpha01 (53ddac4)
    • Internal change (a487c89)
    • Internal change (9d86d27)
    • Add margin flags to BottomSheetBehavior for system inset bars. (185a0f9)
    • Automated g4 rollback of changelist 409212345 (d5729d5)
    • Removed extra space between the list view container and the navigation bar. (6517aa6)
    • Add margin flags to BottomSheetBehavior for system inset bars. (022a05f)
    • Small clean-up of CollapsingTextHelper (c80177d)
    • Internal change. (33f1e3b)
    • Remove IllegalArgumentException in settleToState (dbd37d2)

Full list of changes

1.5.0-beta01...1.6.0-alpha01

1.5.0-beta01

11 Nov 19:10
Compare
Choose a tag to compare

Dependency Updates

  • No dependency updates

Library Updates

  • Material 3
    • Add supporting manufacturer list of dynamic colors (59ca95b)
    • Add textAppearanceListItem* styles to theme (644f8c1)
  • Color
    • Move dynamic color public resources to all versions (34c068f)
  • Chip
    • Add input chip elevated styles to public (3651890)
    • Update M3 chip styles with spec (b96bbaf)
  • Tabs
    • Fix NPE caused by set a position less than 0 (b262423)
  • Other
    • Remove IllegalArgumentException in settleToState (cdf9a28)
    • Update library version to 1.5.0-beta01 (499f4f9)

Full list of changes

1.5.0-alpha05...1.5.0-beta01

1.5.0-alpha05

25 Oct 19:10
Compare
Choose a tag to compare

Dependency Updates

  • No dependency updates.

Library Updates

  • Material 3
    • Unify the theme/style names of time pickers (841fe97)
    • Remove redundant day-night theme overly aliasing (f6426f6)
    • Fix month navigation button alignment (ca09b7b)
  • Color
    • Add public dynamic color resources (dc0c5f3)
    • Harmonize iteration (df87316)
    • Add M3 Dynamic Color Themes for AppWidgets (90c78b9)
    • Reformat ColorRoles and Custom Color's table (fba7e79)
  • Dialog
    • Simplify M3 dialog theme structure (a1e33f1)
    • Update M3 dialog elevation (d045b2d)
  • Slider
    • addOnChangeListener should take NonNull value (8297cf8)
  • ProgressIndicator
    • Fix typo in ProgressIndicator.md (bf3a87e)
  • TopAppBar
    • Defines collapsing text alpha value to be at most as transparent as the user defines. (a290c38)
    • Fix the issue that top app bars not collapsed when top padding is set (7fc006c)
  • MaterialButton
    • Update icon state on Drawable state change. (5844d3c)
  • MaterialDatePicker
    • Replace confirm button strings (cde684a)
  • CollapsingToolbarLayout
    • Allow customizing the title position interpolator (1b8fb30)
  • BottomNavigationView
  • TextInputLayout
    • Fix collapsed hint cutout is not correctly applied (d10c75b)
    • Create label cutout only on borders (79ae9b1)
  • TimePicker
    • Attempt to fix onDoubleTap() NullPointerException (3a57f5d)
    • Make MaterialTimePicker implement OnDoubleTapListener interface instead of instantiating anonymous inner class (93cdd95)
    • Fix showing keyboard requires 2 taps in text input mode (e906367)
    • Fix Input mode is not changed when keyboard icon is clicked when the app is returned from background (0181029)
  • FloatingActionButton
    • [FloatingActionButton]add setter for max image size (1f7202a)
  • Snackbar
    • Fix maxWidth and maxInlineActionWidth are not applied (8729d8a)
  • Chip
    • Update chip styles with spec (abb9d5b)
  • Tokens
    • Updated resources to v0.54. (c1f7dfc)
  • A11y
    • Removed TextInputLayout's placeholder text duplicated announcement, and fixed edge case where placeholder text was being enabled and added to the input frame while it was set to null. (2701161)
    • Removed TextInputLayout's placeholder text duplicated announcement. (aa58657)
    • Announce time has changed after clock selection (228ad85)
  • Catalog
    • add snackbars to toggles (7cc64fd)
    • Simplified getting the fold position for the Adaptive demos. Included considering whether there's a hinge for some cases. (3668ca7)
    • Fixed Activities in manifest for single module Gradle build (79e6834)
    • Changed ListView adaptive demo to include fold position if needed. (82ca11a)
    • Implemented M3 Supporting Panel demo. (a2815ae)
  • Documentation
    • Update for FAB developer documentation (d247b5b)
    • Update Button developer documentation (f14c86d)
    • Fix container transform links in Motion dev doc (9954963)
    • Update title case to sentence case in developer documentation (905520e)
    • Minor punctuation and formatting fixes (84e60c9)
    • Update Getting Started doc link to DSL -> MDC migration guide (e4f70b6)
    • Update Motion dev doc assets (a5f6d10)
    • Small doc fixes. (11c59d6)
    • Small fixes. (844248c)
    • Fix links in CanonicalLayouts.md (adb1ef5)
    • Updated Canonical Layouts doc. (f664923)
    • Update library version in Getting Started doc to 1.5.0-alpha04 (2e5957e)
    • Fixed formatting of multiline tables in dev docs (a013230)
    • Fix dev doc format (615954d)
    • Update Divider developer documentation (7879b27)
    • Added initial canonical layouts guide doc. (5290988)
  • Other
    • update library version to 1.5.0-alpha05 (fb8e131)
    • Automated g4 rollback of changelist 404871534 (8bf3bde)
    • Automated g4 rollback of changelist 404266249 (01c1fc7)
    • Remove all broken attr links from Javadocs (9ae56ce)
    • Added styles in res-public. (9de9319)
    • Automated g4 rollback of changelist 398768587 (e9bca65)
    • Cleanup (15f9b24)

Full list of changes

1.5.0-alpha04...1.5.0-alpha05

1.5.0-alpha04

29 Sep 20:21
Compare
Choose a tag to compare

Dependency Updates

Dependency Previous version New version
drawerlayout N/A 1.1.1

Library Updates

  • Material 3
    • Updated generated typography token resources and text appearances (39f6190)
    • Added M3 Bottom Sheet styles (cdafe75)
    • Added M3 Progress Indicator styles (5c2a592)
    • Added M3 Snackbar styles (41219f0)
    • Fixed Gradle dependency of BuildCompat (31af619)
    • Added Medium and Large collapsing toolbar Top App Bar Catalog demos (7463f9a)
    • Added compress effect Top App Bar demo to Catalog (9534612)
    • Added tertiary FAB color variant (054f1db)
    • Added M3 styles for Dialog (f01e6a8)
    • Added M3 theme tests (e509cb4)
    • Updated date picker title typography (83e73de)
    • Added new navigation rail styles. (c6d0f7c)
    • Fixed favorite demo button icon colors in Catalog (574f83d)
    • Added M3 styles for navigation view (d0edb45)
    • Added filled card style to M3 themes (b40b782)
  • CollapsingToolbarLayout
    • Update the duration in setScrimAnimationDuration if scrimAnimator is already created (9382bb0)
  • AppBarLayout
    • Fixed stateListAnimator related elevation bug (b778645)
  • MaterialDatePicker
    • Fixed excessive whitespace (8fda897)
  • BottomAppBar
    • Support showing/hiding immediately (34740b6)
  • Color
    • Imported new color library into Material (4b936dc)
    • Added APIs for color harmonization and role mapping utilities (1d3bb92)
  • Catalog
    • Removed MaterialComponents references from musicplayer package (ed0567d)
    • Added adaptive canonical layout demos (c64bb76)
  • LinearProgressIndicator
    • Improved the smooth transition from indeterminate mode to determinate mode (2161743)
  • TimePicker
    • Send accessibility event when updating input mode (00c0df9)
    • Added ability to customize positive and negative button (168c691)
  • NavigationRail
    • Updated rail to support a minimum menu item height (674463f)
    • Added support for unlabeled items to automatically resize their active indicator (fd23c6b)
  • Tab
    • Fixed isSelected() may returns incorrect result (8a1f221)
    • Fixed setting tab indicator and its full-width flag (868f8aa)
    • Fixed NPE caused by null tab indicator (328d269)
  • AppBar
    • Fixed incorrect scroll position after orientation changes (4bec3e2)
  • NavigationView
    • Added support for changing item size, divider insets, label insets, and corner size (e8c1d98)

Full list of changes

1.5.0-alpha03...1.5.0-alpha04

1.5.0-alpha03

31 Aug 20:50
Compare
Choose a tag to compare

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

1.5.0-alpha02

11 Aug 18:35
Compare
Choose a tag to compare

Library Updates

  • BottomSheet
    • Fix fitToContents reference in comment (c371372)
    • Add maxHeight to bottom sheet behavior (a38d2d8)
  • MaterialCardView
    • Add invalidate when stroke changed (4acc56d)
    • Fix checked icon tint for API < 21, BitmapDrawables (b064460)
  • Chip
    • Fix touching cannot put focus on chips with Talkback (7085319)
    • Report a11y class name as RadioButton in single selection mode (31ca110)
  • Slider
    • Fix minSeparation having no effect when stepSize > 0 (2d589bd)
  • BottomAppBar
    • Fix default style not being applied (ac1caf4)
    • Add functions for checking (STATE_SCROLLED_UP | STATE_SCROLLED_DOWN) (3bb0911)
  • Other
    • Version 1.5.0-alpha02 (0e5c393)
    • Updated some string translations for date picker, time picker, and text field (57e3bc0)
    • Fixed the transparent strip drawn at the ends of the indicator. (a55f3b8)
    • Added null check in requestAnimatorAfterCurrentCycle for disjoint indeterminate animator. (456abd5)
    • Fixed the transparent strip drawn at the ends of the indicator. (f9f57d7)
    • Add setLiftableOverrideEnabled() method to allow toggling between automatic and manual setLifted() behavior (e2c911b)
    • Updated setLifted() to preserve lifted state if using setLiftable() programmatically (67f9e9d)
    • Apply the max width/height during measure instead of modifying layout params (9fb73b5)
    • Internal change (cbf7bca)
    • Added listener for when lift on scroll background elevation and color change (3008d78)
    • Modify updateAppBarLayoutDrawableState logic to only require a child at an offset for conditions that depend on that child. For conditions that can be determined just based on the AppBarLayout, always check those conditions. (3eea607)
    • Added support for statusBarForeground lift on scroll elevation overlay for edge to edge mode and updated demo (aaa0444)
    • Fix ViewDragHelper state inconsistency (a2e7673)
    • Fix styles and attrs references in documentation (27b99ed)
  • Catalog
    • Small updates to music player demo. (cc4a604)
  • Transitions / Motion
    • Fix NPE when removing window background (b51692d)
  • MaterialDatePicker
    • Date selector hint incorrectly localized (47868d8)
  • Documentation

1.5.0-alpha01

08 Jul 21:32
Compare
Choose a tag to compare

Dependency Updates

Dependency Previous version New version
compileSdkVersion 29 30
androidx.core 1.2.0 1.5.0

Library Updates

  • New Divider component (Docs)
    • Added new Divider component to the library and Divider doc. (782dffa)
    • Added divider demo in catalog (acf08f7)
    • Fixed divider title (d0e3ce1)
  • Transitions / Motion
    • Extracted music player app into its own package and made transition demo depend on it. (a536a80)
    • Add motion package and utils to resolve motion theme attrs. (217bdef)
  • BottomSheet
    • make FloatRange for setHalfExpandedRatio() exclusive (77c2a83)
    • Adds additional methods that are restricted to the library. They will be used for Experiment and deleted/revised after experiment. (b4982f9)
    • read the edgeToEdgeEnabled value earlier in the lifecycle (030e5bd)
  • BottomAppBar
    • Improved Bottom App bar demo controls. (c995ae2)
    • Adding the attr to set the color of navigation icon. (0ed7c76)
    • change cornersize to float to avoid truncation errors (8e9b680)
  • MaterialButton
    • Updated Material Button style to set the preferred maximum width to 320dp. (c5c7a74)
  • BottomNavigationView
    • Added deprecation Javadoc for BottomNavigationView#OnNavigationItemSelectedListener and BottomNavigationView#OnNavigationItemReselectedListener. (720088c)
    • Updated to explicitly read and set minimum height. (943c4f0)
  • Documentation
    • [Documentation] (f6237e3)
    • Fix menu doc. (86f8c51)
    • Updated BottomNavigation documentation. (b503287)
    • Fix typo in the word "checkbox". (bd5a96f)
    • Fixing typo. (af9570c)
    • Improving navigation rail documentation. (95a769c)
  • TextInputLayout
    • Apply tint when setting start icons (4044183)
    • Do not load default drawable if custom end icon is being used (717774e)
    • Make clear text icon focusable (8a4f42a)
    • [Documentation][TextInputLayout] (336042d)
    • Added a fade transition to placeholder TextView's appear and disappear. (c92e693)
    • Fixed cutout padding so text field outline doesn't overlap collapsed hint. (87b50c6)
  • Badging
    • Update badge position after clearing numbers (5973920)
    • Support differing offsets for badges with/without text, support badge width and padding in styles. (bd4914d)
  • MaterialDatePicker
    • Avoid NPE caused by getSelection() before created (cb5d622)
    • Fix opening at the selected date in the end month (eb7b114)
    • Fix DatePicker crashes and and potential issue of range selection (281688a)
    • Make calendar day of week label stying more flexible (37f0ca1)
  • TimePicker
    • Hide cancel button when it's not cancelable (35c2af3)
    • Make display divider styling more flexible (b420eab)
    • Make time text input fields stying more flexible (818f253)
  • MaterialShapeDrawable
    • Move static paint initialization to static block (b8c9f49)
  • ProgressIndicator
    • Added the OnAnimationEndListener adder and remover for spring animation used in determinate drawable. (cd5c2cc)
    • Fix NPE caused by animatorCompleteCallback not set (f732070)
    • Enabled switch from indeterminate mode to determinate mode while visible. (209bad3)
    • Fix first animated progress update issue. (f968731)
  • Snackbar
    • Handle anchor view properly so no memory leak will happen (58ceeab)
    • Fix memory leak caused by not resetting anchor views (b0558dc)
  • Chip
    • Fix icon tint states are not updated after setting new icon (c08a07d)
  • FloatingActionButton
    • Updated documentation for RTL support (9a603aa)
  • Slider
    • Do not invoke OnChangeListeners when restoring states (db8b239)
    • Fix halo showing under wrong thumbs (8431bd4)
  • Tabs
    • Redraw indicators after their color is updated (e92ebde)
  • CollapsingToolbarLayout
    • Added option to add extra height when title text spans across multiple lines (655dde0)
    • Added option to force always applying system window inset top regardless of layout_height (9ebf1a1)
    • Fixed multiline RTL collapsed title text position (af35dfb)
    • Added experimental setRtlTextDirectionHeuristicsEnabled() method (ae82585)
    • Added support for expanded and collapsed title text color attributes (5c14772)
    • Fixed RTL text only laying out as RTL when actual text is RTL (841f229)
    • Updated fade mode to allow expanded title to translate 1:1 with scrolling content. (c754183)
    • Added title line spacing and hyphenation frequency setters (f0ce498)
    • Added getLineCount() method (be85a92)
    • Added support for multiline RTL when using fade title mode (f0ac362)
    • Updated default multiline hyphenation frequency to StaticLayout.HYPHENATION_FREQUENCY_NORMAL (3ad232d)
    • Fixed multiline animation for fade title collapse mode (5a35bf7)
  • Catalog
    • Make card view demo paddings aligned with spec (65e99d0)
    • Remove theme switcher implementation (415ed74)
    • Fix system navigation bar demo (2a23ef4)
    • Replace theme switchers with preferences screen (ce84b58)
    • Add shape corner size preference to preferences screen (6e7be60)
    • Add shape preference to preferences screen (832e43f)
    • Implement app preferences mechanism in Catalog (3aa76da)
    • Refactored fab demos to improve alignment (9886810)
    • Added Navigation Rail demos to catalog. (401a5a8)
    • Removed full width button style and related dialog themes. Updated catalog dialog demo to showcase how to create dialogs with full width buttons. (95da705)
    • Update dialog main demo fragment to allow subclasses to override the theme overlay resources used in the demo. (15daf58)
    • Updated Catalog demo to show full width buttons in dialogs. (633ef0d)
  • Other
    • update library version to 1.5.0-alpha01 (4b9148c)
    • Update inset handling for Navigation Rail & Bottom Nav (501ef8e)
    • Fix progress indicator is not shown when set as the icon (456f135)
    • Updated documentation (48a5826)
    • Update @SuppressWarnings annotations for go/nullness diagnostics (ed719b2)
    • Updated navigationIconTint implementation to mutate drawable to prevent tinting drawable globally (e334332)
    • Adding android:textColor support (7adfd93)
    • Fix title fade mode collapsing title position errors. (0ef2e91)
    • Added a TextAppearanceConfig.shouldLoadFontSynchronously() check to allow forcing synchronous font loading for edge cases (9b92fd8)
    • Updated androidx.core dependency from 1.5.0-rc01 to 1.5.0 stable (ea2b0bc)
    • Fix catalog preference state restoring issue (967745a)
    • Fix test missing assertion (265055f)
    • Added manual constructor for ElevationOverlayProvider. (43cfc05)
    • Added elevation overlay accent color option (2c557b6)
    • Update compile sdk version to 30 (5c0b8d6)
    • Added compress scroll effect. (586d554)
    • Updated TextAppearance to load font synchronously if its cached. Also updates lib to depend on 1.5.0-rc01 for the ResourcesCompat#getCachedFont method. (0ad429d)
    • Added dimen resource for op...
Read more