Skip to content

Releases: material-components/material-components-android

1.3.0-alpha01

02 Jun 17:04

Choose a tag to compare

Dependency Updates

  • No dependency updates.

Library Updates

  • ProgressIndicator
    • Added Progress Indicators (cc88816)
  • Transitions / Motion
    • Fixed Activity container transform unexpected flash and fade (57a8ebd)
    • Fixed MaterialContainerTransform setScrimColor Javadoc error and getDrawingViewId/setDrawingViewId docs typo (119954c)
    • Updated ScaleProvider to use growing/shrinking naming. Fixed MaterialSharedAxis isForward getter naming. (56b3390)
    • Updated MaterialContainerTransform to use default scrim color constant instead of theme attribute (f20a91f)
    • Added support for container transform start and end container colors. (e00df6d)
    • Updated MaterialContainerTransformSharedElementCallback to support custom shape appearances (a5381ac)
    • Updated MaterialContainerTransform to support drawing elevation shadows during transition (1094b48)
    • Fixed container transform start delay flash (6ab9e11)
    • Added support for adding additional animator providers to MaterialVisibility transitions (b854a73)
    • Removed TransitionValues params from VisibilityAnimatorProvider interface methods (04c93ea)
    • Replaced MaterialVisibility subclass static constructors for standard constructors (d025a3b)
    • Updated MaterialVisibility to not need initialize method (e63cae5)
    • Updated transitions to be based on androidx and add transitions platform subpackage to support Activities, Windows, etc. (cd36c2f)
  • BottomNavigation
    • Updated BottomNavigation to respect left/right system insets (5889993)
  • MaterialCardView
    • Prevented content from being clipped by MaterialCardView when a non-round rect is set as the shape. (d09ac03)
  • MaterialButtonToggleGroup
    • Fixed bug in shape appearance when only one button is visible (42126ef)
    • Dispatched button checked after the the button states have been updated and any internal corrections (e.g. singleSelection, selectionRequired) has been made. (2d0e009)
  • Theming
    • Set buttonBarButtonStyle in full Material Component themes to use @style/Widget.MaterialComponents.Button.TextButton. (68ccc33)
  • MaterialButton
    • Fixed MaterialButton$SavedState ClassNotFoundException (7cfc63e)
    • Removed AppCompatButton workaround for FloatingToolbar in API 23-25 now that MaterialButton supports android:background. (4fb2375)
  • Slider
    • Added range and invalid value to IllegalStateException message to make it more clear. (e521fda)
    • Split Slider into two classes (8f0aa7f)
    • Set Slider to be clickable by default. (7d92cd9)
    • Fixed slider tooltip in popupwindows (b631ef6)
    • Made Slider a11y helper a static class (59c1560)
    • Renamed color setters in Slider so it's obvious that color properties are ColorStateList. (7a8f3bd)
  • TextInputLayout
    • Fixed crash when calling setBoxCornerRadii when edit text hasn't been added yet. (8a5c95c)
    • Fixed end icon having unexpected behaviors when it's switched from another end icon mode. (e315754)
    • Fixed merge icon and view state when setting icon color. (33700b0)
    • Added setBoxBackgroundColorStateList method and fixing setBoxBackgroundColor method not changing focused and hovered states color like it did originally. (e5a85a2)
    • Added setters and getters for boxStrokeWidth and boxStrokeWidthFocused attrs. (167020a)
    • Flipped password icon behavior so that it shows the action (what's going to happen after the click) instead of the current status. (99c6a28)
    • Added click listener for error icon (1b124af)
  • ShapeableImageView
    • Fixed bug when dynamically updating shape appearance (2b676b4)
    • Changed strokeWidth to float and support null for stroke color (24f9c06)
  • BottomSheet
    • Fixed crash in bottomsheet on SDK 17 (6f589d3)
  • Badging
    • Updated content description for badge number that exceeds the max supported badge count to say "More than # new notifications" instead of "# and more notifications". (47f3bbc)
    • Updated badge content description to match badge text displayed (when badge number exceeds max badge number). (eb65ce5)
  • Chip
    • [Chip]Fixed chip icon with different width and height (45f5903)
  • A11y
    • Fixed the role description of the GMDC bottom navigation item view's accessibility node. (bcaca40)
  • MaterialDatePicker
    • Fixed logic to disable positive button when invalid or incomplete dates are selected (7965098)
    • Fixed check for date input keyboard separator characters for single selection mode (67e9eaf)
    • Made customDatePicker method public but restricted for now (0bdb2cb)
    • Fixed issue that causes the Datepicker to highlight wrong the day as today. (d2f81ca)
    • Fixed Datepicker demo in Catalog application to call the correct method to obtain current date (and time). (9f71950)
  • Documentation
    • Updated Switch documentation. (0c7db72)
    • Updated Checkbox documentation. (83ba040)
    • Updated RadioButton documentation. (b01058a)
    • Updated Bottom App Bar doc. (0d61a37)
    • Updated Card doc. (fbd414b)
    • Updated FABs doc. (2bc442e)
    • Updated bottom navigation documentation. (4a8e005)

Full list of changes

1.2.0-alpha06...1.3.0-alpha01

1.2.0-beta01

28 May 19:01

Choose a tag to compare

Dependency Updates:

  • No dependency updates.

Library Updates:

  • Transitions/Motion
    • Update transitions to be based on androidx and add transitions platform subpackage to support Activities, Windows, etc. (e33c6d5)
    • Update MaterialContainerTransform to support drawing elevation shadows during transition (fc36640)
    • Update MaterialContainerTransformSharedElementCallback to support custom shape appearances (df977a0)
    • Add support for container transform start and end container colors (f095b0b)
    • Fix Activity container transform unexpected flash and fade (c27de09)
    • Fix container transform start delay flash (95d9320)
  • Slider
    • Split into two classes: slider and range slider (afcda08)
    • Fix slider tooltip in popupwindows (aab7100)
    • Fixed MaterialSharedAxis return transition (5b07d02)
  • ShapeableImageView
    • Support dynamic update of shapeappearance (4518be3)
  • TextInputLayout
    • Fixing crash when calling setBoxCornerRadii when edit text hasn't been added yet (d0f7d49)
    • Fixing end icon having unexpected behaviors when it's switched from another end icon mode (0631c53)
    • Adding setBoxBackgroundColorStateList method and fixing setBoxBackgroundColor method not changing focused and hovered states color like it did originally (7423884)
    • Adding setters and getters for boxStrokeWidth and boxStrokeWidthFocused attrs (008c199)
    • Flipping password icon behavior so that it shows the action (what's going to happen after the click)
      instead of the current status (36bdb70)
    • Add click listener for error icon (3738698)
  • MaterialDatePicker
    • Disable positive button when invalid or incomplete dates are selected (a310f90)
    • Fix check for date input keyboard separator characters for single selection mode (45fb932)
    • Fixed issue that causes the Datepicker to highlight wrong the day as today (0bbc848)
  • MaterialButtonToggleGroup
    • Single visible button corners (680619b)
  • MaterialRadioButton
    • Fix tint from theme attributes on api 21 + add test (7697699)
  • Set buttonBarButtonStyle in full Material Component themes to use
    @style/Widget.MaterialComponents.Button.TextButton (89f2248)
  • Talkback / Screen reader improvements
    • Latest version of Talkback now provides information about grouped context to screen readers (e.g. tabs will now announce x out of y tabs)

Breaking Changes:

  • Transition/Motion
    • Transition classes now extends AndroidX's Transition lib instead of the Framework version. Use platform sub-package for the Framework version.
    • Removed TransitionValues from VisibilityAnimatorProvider methods
    • Removed static create methods from MaterialFade, MaterialFadeThrough and MaterialSharedAxis in favor of regular constructors
    • Made several Transition classes final
    • Renamed MaterialSharedAxis#isEntering method to MaterialSharedAxis#isForward
  • MaterialDatePicker
    • Restricted visibility of customDatePicker method
  • Slider
    • Split into two classes, Slider and RangeSlider
  • ShapeableImageView
    • Change strokeWidth to float and support null for stroke color

Full set of changes: 1.2.0-alpha06...1.2.0-beta01

1.2.0-alpha06

13 Apr 23:42

Choose a tag to compare

Dependency Updates:

  • No dependency updates.

Library Updates:

  • Button
    • Support for android:background ! (309d718)
  • Transitions/Motion
    • Fixed MaterialSharedAxis return transition (5b07d02)
    • Fixed MaterialContainerTransform flashing on API 22 (0f0942b)
    • Remove context parameter from all transition constructors (2a2792d)
    • Deprecated transformation package in favor of new transitions package (bbb534e)
  • Chip
    • Color contrast a11y improvements (5834d44)
    • 0dp corner radius support (ded0c3f)
  • BottomSheet
    • Support window insets when peeking (4e28d9c)
  • Dialog
    • Added nullablility annotations (b942836)
  • Text Field
    • MaterialAutoCompleteTextView has been moved into the textfield package (d1850a3)
  • Misc
    • Opened up access to MaterialColors (6602bf6)

Full set of changes: 1.2.0-alpha05...1.2.0-alpha06

1.2.0-alpha05

20 Feb 23:32

Choose a tag to compare

Dependency Updates

Dependency Previous version New version
androidx-core 1.1.0 1.2.0

Transitions/Motion system

https://material.io/design/motion/the-motion-system.html

Sliders

  • Added support for multiple Slider thumbs (a6e28be)
  • Fixed Slider rounding error caused by floats (7679158)
  • Updated to handle single tap for Slider in scrollable container (1bc4f60)

ShapeableImageView

  • Now supports Animatable drawables (20d2efe)

Chipgroup

  • Fixed double emission on check state change when selectionRequired is true (401b99e)

TextInputLayout

  • Fixed gravity "top" is not working for hint (#933)

DatePicker

  • Added more validators (89e0e56, 4ccb052)
  • Fixed Crash - Scroll to Min Year of CalendarConstraint (e664b98)

MaterialButtonToggleGroup

  • Fixed SelectionRequired attribute doesn`t enforce checkedButtonId to be a valid id (returns -1) (e56b141)

CollapsingToolbarLayout

Shapes

  • Added ShapePath#cubicToPoint() (983ee3d)
  • Clarified ShapePath#quadToPoint() will only draw native shadows (1e1100f)
  • Fixed interpolation for MSD round rects (8e8d20c)

A11y

  • Added roleDescriptions to tabs for accessibility (811ea17)
  • Added support for D pad and keyboard control for Slider (4c99e53)
  • Added A11y support to slider (340cdea)

Docs

Made improvements to docs section Button docs

Full list of changes 1.2.0-alpha04...1.2.0-alpha05

1.1.0

03 Feb 18:11

Choose a tag to compare

What's New Since 1.0.0?

  • Material Dark Theme for all components
  • New Date Picker with range functionality and accessibility improvements
  • Badging for Tabs and Bottom Navigation
  • Extended Floating Action Button
  • Toggle Button Group
  • Android 10 component support for edge to edge gesture navigation
  • Accessibility improvements
  • Material Theming (Shape, Typography, Color)
  • Stability and quality improvements

Dependency Updates:

  • No dependency updates.

Library Updates:

  • No library updates.

Full set of changes: 1.1.0-rc02...1.1.0

1.2.0-alpha04

21 Jan 21:21

Choose a tag to compare

Dependency Updates:

  • No dependency updates.

Library Updates:

  • Slider
    • Added getters and setters of colors (3e212ef)
    • Added option to hide label (9ae1494)
    • Added OnFocusChangeListener (7691797)
    • Removed the invoke of requestDisallowInterceptTouchEvent(false) in ACTION_UP (d864118)
    • Removed unnecessary invalidation if the values haven't changed (e38d260)
    • Fixed halo rendering bug (5f631d4, df61bff)
    • Fixed no OnChangeListener fires when value changed with single click, and setting same values will trigger listener event (9bbcd2d)
    • Fixed crash with NullPointerException when set value before laid out (fa4dc3d)
    • Updated Tooltip dimensions to match spec (2098c0b)
  • SeekBar
    • Added missing functionality from SeekBar regarding touch events and value changes (cde09d4)
  • BottomSheet
    • Allowed collapsed bottom sheet to settle to half expanded state on dragging up (67fc0c9)
    • Added an ability to prevent dragging to expand/collapse (5b4ea9c)
    • Removed existing content during each setContentView (6c1b620)
  • TextField
    • Fixed crash when password is clicked and edit text is not focused in TalkBack mode (8ed0ab7)
    • Fixed outlined text fields not taking into account top padding (bf6ece0)
    • Fixed input text not being disguised by default when setting the end icon mode to password_toggle (e624c02)
    • Fixed expanded label not updating if edit text's size is changed programmatically (ffcb46b)
    • Fixed disabled color set for android:textColorHint not being applied on the label (16024fd)
    • Fixed label misalignment in legacy text fields when there is prefix/suffix (338d326)
  • Chip
    • Added CollectionInfos and CollectionItemInfos to ChipGroup and Chip for accessibility (253cdc2)
    • Fixed RTL padding issue (ba8e18e)
  • Selection
    • Added CollectionInfos and CollectionItemInfos to MaterialButtonToggleGroup and MaterialButton for accessibility (4389a18)
  • ShapableImageView
    • Support more types of Drawables (36426fc)
  • DatePicker
    • Added support to start in MaterialTextInputPicker mode (0e6c21d)
  • TabLayout
    • Fixed crash on autoRefresh disabled mediator (07931b6)
    • Fixed backward compatibility issue (17912e0, 3cd591f)
  • Menu
    • Fixed icons get squeezed for API <=21 (c6a554f)
  • MaterialShapeDrawable
    • Fixed shadow paint not updating color while setting shadow color (9f48006)
  • FAB
    • Added support for enabled/disabled state (94cd734)
  • Shrine
    • Updated deprecated volley dependency (870a732)
  • Catalog
    • Fixed strings text of ImageView (1dfc328)
    • Added new thumbnail for entry in the catalog for List (7b0a41d)

Full set of changes: 1.2.0-alpha03...1.2.0-alpha04

1.1.0-rc02

17 Jan 21:49

Choose a tag to compare

Dependency Updates:

  • No dependency updates.

Library Updates:

  • TabLayout
    • Updates to listeners to maintain binary compatibility (6c41388, 09d87fe) - Resolves #903
    • Prevent crash for autoRefresh disabled TabLayoutMediator (3e98044) - Resolves #877
  • TextInputLayout
    • Fixing crash happening when password toggle is clicked without the edit text having focus in TalkBack mode (d5b2d81)
  • Snackbar
    • Fix NullPointerException in BaseTransientBottomBar (c6b39c3) - Resolves #917

Full set of changes: 1.1.0-rc01...1.1.0-rc02

1.2.0-alpha03

19 Dec 23:44

Choose a tag to compare

Dependency Updates:

Dependency Previous version New version
annotation-experimental N/A 1.0.0
coordinatorlayout 1.1.0-rc01 1.1.0
viewpager2 1.0.0-rc01 1.0.0

Library Updates:

  • Slider
    • Add OffsetEdgeTreatment (5f4a139)
    • Initial implementation of TooltipDrawable (a282afe, c421319)
    • Update Slider to use TooltipDrawable (5d1a369)
    • Fix issue where you cannot set stepSize < 1.0 (58190de)
    • Remove the requirement to setClipChildren false on the parent of Slider (df94cd1)
    • Add option to set the track height of the Slider (fe160f3)
    • Rename Slider forceDrawCompatShadow to be forceDrawCompatHalo (6adbcc2)
    • Draw the halo color instead of the thumb color for the compat halo for Slider (b1816e1)
    • Recalculate Slider ticks when the step size changes (1723dd4)
    • Rename slider tick and track color attributes to keep them together when sorted alphabetically (921d392)
    • Fix height of Slider when floating label is false (dc17035)
    • Update the radius of the Slider RippleDrawable (b2deaa3)
    • Fixed behaviour when Slider is in a scrolling container (a7da96f)
  • ShapeableImageView
  • MaterialButtonToggleGroup
    • Add selection required option to MaterialButtonToggleGroup (a4b9032)
  • MaterialShapeDrawable
    • Update MaterialShapeDrawable to handle overlapping edge and corners (8ed1484)
    • Enable non convex shadows on Q (bb1e9e4)
  • TextInputLayout
    • Accessibility improvements for hint, error, and helper text (29f3d05, 6849bae, b78be8d, 11c57ab)
    • Adding onInitializeAccessibilityNodeInfo override in TextInputEditText (6efedee)
    • Limiting helper/error view width so that counter view doesn't get pushed out (eabbfa2)
    • Add support for placeholder text in TextInputLayout (201ec62)
    • Fixing cutout not working with CENTER_HORIZONTAL (9dcb121)
    • Pan window so that keyboard doesn't hide helper/error views (2084fd3)
  • MaterialCardView
    • Disable MaterialCardView bitmap drawing (781e79f)
  • Chip
    • Support tinted chip icons (d25fa92)
    • Support setting textAllCaps in textAppearance xml (e3be6b0)
    • Fix chip text mis-alignment when its width is less than the minimum recommended touch target width (a320475)
  • BottomAppBar
    • Handle horizontal system insets for BottomAppBar (6405635)
  • Proguard
    • Use conditional keep rule for MaterialComponentsViewInflater (d7a5dc8)

Full set of changes: 1.2.0-alpha02...1.2.0-alpha03

1.1.0-rc01

19 Dec 21:14

Choose a tag to compare

Dependency Updates:

Dependency Previous version New version
coordinatorlayout 1.1.0-rc01 1.1.0
viewpager2 1.0.0-rc01 1.0.0

Library Updates:

  • MaterialDatePicker
    • Separate date format string from date hint string in MaterialDatePicker for better hints (cc1cfd7)
    • Include separator characters for Samsung devices in MaterialDatePicker (945a220)
    • Fixed MaterialDatePicker todayInUtcMilliseconds method (ff5993d)
    • Fixed getDayCopy utility function in UtcDates for DatePicker (88a67b0)
    • Update MaterialDatePicker to read colorSurface from correct context (267e299)
  • BottomSheetBehavior
    • Update BottomSheet to have a singular SettleRunnable (6178e71)
  • FloatingActionButton
    • Add workaround to prevent FloatingActionButton crash on API 26 (a718fd1)
  • AppBarLayout
    • Fix AppBarLayout statusBarForeground issue where status bar drawable is drawn behind content (1a31ddc)
  • Snackbar
    • Update Snackbar gesture inset calculation to factor in translationY (904d063)

Full set of changes: 1.1.0-beta02...1.1.0-rc01

1.2.0-alpha02

20 Nov 00:04

Choose a tag to compare

Dependency Updates:

Dependency Previous version New version
coordinatorlayout 1.1.0-beta01 1.1.0-rc01
viewpager2 1.0.0-beta05 1.0.0-rc01

Library Updates:

  • Accessibility updates and documentation improvements.
  • BadgeDrawable
    • Add support for vertical & horizontal offset (632675e)
  • BottomAppBar
    • Add ability to enable/disable bottom inset padding (b9f8ee9) (67491fc)
  • ChipGroup
    • Add support for requiring a selected chip via selectionRequired attr (573efa4)

Full set of changes: 1.2.0-alpha01...1.2.0-alpha02