Releases: material-components/material-components-android
1.3.0-alpha01
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)
MaterialButtonToggleGroupTheming- Set buttonBarButtonStyle in full Material Component themes to use @style/Widget.MaterialComponents.Button.TextButton. (68ccc33)
MaterialButtonSlider- 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)
ShapeableImageViewBottomSheet- Fixed crash in bottomsheet on SDK 17 (6f589d3)
BadgingChip- [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
Full list of changes
1.2.0-beta01
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)
SliderShapeableImageView- 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)
MaterialDatePickerMaterialButtonToggleGroup- Single visible button corners (680619b)
MaterialRadioButton- Fix tint from theme attributes on api 21 + add test (7697699)
- Set
buttonBarButtonStylein 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
platformsub-package for the Framework version. - Removed
TransitionValuesfromVisibilityAnimatorProvidermethods - Removed static create methods from
MaterialFade,MaterialFadeThroughandMaterialSharedAxisin favor of regular constructors - Made several Transition classes final
- Renamed
MaterialSharedAxis#isEnteringmethod toMaterialSharedAxis#isForward
- Transition classes now extends AndroidX's Transition lib instead of the Framework version. Use
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
Dependency Updates:
- No dependency updates.
Library Updates:
Button- Support for android:background ! (309d718)
Transitions/MotionChipBottomSheet- Support window insets when peeking (4e28d9c)
Dialog- Added nullablility annotations (b942836)
Text Field- MaterialAutoCompleteTextView has been moved into the
textfieldpackage (d1850a3)
- MaterialAutoCompleteTextView has been moved into the
Misc- Opened up access to MaterialColors (6602bf6)
Full set of changes: 1.2.0-alpha05...1.2.0-alpha06
1.2.0-alpha05
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
selectionRequiredis 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
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
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)
BottomSheetTextField- 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:textColorHintnot being applied on the label (16024fd) - Fixed label misalignment in legacy text fields when there is prefix/suffix (338d326)
ChipSelection- Added
CollectionInfosandCollectionItemInfostoMaterialButtonToggleGroupandMaterialButtonfor accessibility (4389a18)
- Added
ShapableImageView- Support more types of
Drawables (36426fc)
- Support more types of
DatePicker- Added support to start in MaterialTextInputPicker mode (0e6c21d)
TabLayoutMenu- 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)
- Fixed strings text of
Full set of changes: 1.2.0-alpha03...1.2.0-alpha04
1.1.0-rc02
Dependency Updates:
- No dependency updates.
Library Updates:
TabLayoutTextInputLayout- Fixing crash happening when password toggle is clicked without the edit text having focus in TalkBack mode (d5b2d81)
Snackbar
Full set of changes: 1.1.0-rc01...1.1.0-rc02
1.2.0-alpha03
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)
ShapeableImageViewMaterialButtonToggleGroup- Add selection required option to MaterialButtonToggleGroup (a4b9032)
MaterialShapeDrawableTextInputLayout- 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)
ChipBottomAppBar- 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
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
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)
BottomAppBarChipGroup- Add support for requiring a selected chip via
selectionRequiredattr (573efa4)
- Add support for requiring a selected chip via
Full set of changes: 1.2.0-alpha01...1.2.0-alpha02