Releases: material-components/material-components-android
Releases · material-components/material-components-android
1.3.0-alpha02
Dependency Updates
| Dependency | Previous version | New version |
|---|---|---|
| constraintlayout | 1.1.3 | 2.0.0-beta7 |
Library Updates
MaterialTimePickerProgressIndicator- Fixed incorrect visibility change when the component's parent is not visible. (ea9cce8)
- Changed class visibility of CircularDrawingDelegate. (aca5307)
- Added the function in ProgressIndicatorSpec to load from style. (4005294)
- Revived the argument (restart) in setVisible of drawables. (c4f44d2)
- Changed drawables to detect system animator duration scale by themselves. (f7bad9a)
- Removed explicitly disabling animators. (2803960)
- Changed logic to guarantee the indeterminate arc fully collapsed before showing determinate arc. (764f063)
- Updated system animation duration scale more frequently. (92aca74)
- Updated the drawable setters. (28177cb)
- Separated the padding when calculating drawable's intrinsic size. (380c21a)
- Invalidated indicator colors properly in animator delegate. (43fe75f)
- Unregistered animator complete callback on detach from window to prevent memory leak. (fabd36f)
- Replaced ProgressIndicator references in drawable&delegate classes to prevent memory leak and prepare for the stand-along drawable feature. (4ff3031)
- Forward fixed "ripple" bug from the fix for indeterminate animation not respecting to system animator scale. (cf98f94)
- Added logic to respond to system animation scale settings for determinate types. (984738c)
- Fixed indeterminate types disco when system animation duration scale is off. (4ccec4f)
- Fixed incorrectly setting drawable's visibility when switching indeterminate mode for API19. (26021ed)
- Changed interpolator for seamless linear indeterminate type from LINEAR_OUT_SLOW_IN to FAST_OUT_SLOW_IN. (0b443ad)
- Relocated the logic of animator disabling. (e44804f)
- Added the custom drawable support (02c3b3d, 4337eea, c22f3f4, 4f5a98f, 7e595b6, 8fbc2e0, bf141bb)
- Fixed wrong attribute used in indeterminate mode catalog fragment. (90e3839)
- Fixed CircularIndeterminateDrawable not resetting animator properly after switching to determinate mode. (c5f900b)
- Add new minHideDelay property (924ac3f)
- Added auto-cap to limit the indicator corner radius equal to or less than half of the indicator width. (5febeba)
- Added support of rounded corners. (48c4ef0)
- Fix for non dismissable progress indicator (584d725)
- Exposed progress indicator demo. (7b9cd66)
Slider- Added min separation support (b8f4b22)
- Fixed exception when restoring instance state (cc03196)
- Move static inner classes outside base slider class (34f621d)
- Fixed number of values changing in RangeSlider (4eea03d)
- Changed slider thumbs to prevent crossing each other (71fcb73)
- Changed slider to support very small widths (ba9c2e6)
- Keyboard navigation fix (3e3bc41, a49e886)
Transitions / Motion- Removed extra transition background fade duration from MaterialContainerTransformSharedElementCallback in favor of nulling out sharedElementReenterTransition to prevent extra transition from happening (88ca5c9)
- Added extra transition background fade duration to MaterialContainerTransformSharedElementCallback to prevent extra Activity transition from happening (889fca5)
- Changed MaterialContainerTransform to skip transition instead of crash when no view bounds (6b63c11)
- Fix zero-length motion path container transform bug. (3c9096d)
- Updated MaterialElevationScale default scale value to 0.85 (ef64df5)
- Added MaterialElevationScale transition (3379c45)
BottomSheetMaterialDatePickerShapeableImageView- Made stroke field nullable (ef3f09d)
MaterialButtonTextInputLayout- Fixed padding for prefix/suffix and label in RTL being wrong. (7b5aea2)
- Changing hint announcement. (b274a4a)
- Changed prefix/suffix demo it shows number keyboards for the inputs. (3ed776a)
- Fixed clear icon and placeholder text being displayed when the text field is initialized with input text. (9b0a8d9)
- Fixed icon tint not being applied properly when calling set*IconDrawable (855602b)
MaterialAutoCompleteTextViewBottomAppBar- Update menu replacement animation to coordinate with fab alignment animation. (d4a5702)
A11y- Changed the editable exposed dropdown menu's a11y class name to be EditText instead of a drop down since the primary action for the user is to type. (023e518)
ChipMaterialShapeDrawable- Fixed exception with int division (26fc10c)
CollapsingToolbarLayoutTheming- Move Design widget styles back to full themes from Bridge themes (8851f70)
Other- Update target sdk from 28 to 29 (44ff45c)
Full list of changes
1.2.0-rc01
Dependency Updates
| Dependency | Previous version | New version |
|---|---|---|
| Android Gradle plugin | 3.3.2 | 4.0.0 |
Library Updates
Theming- Moved design widget styles back from Bridge to full themes (79cd057)
MaterialButtonMaterialShapeDrawable- Fixed exception with int division (d51ae67)
Slider- Fixed exception when restoring instance state (3101ef0)
- Moved static inner classes outside base slider class (a1e0883)
- Fixed number of values changing in RangeSlider (ca0110d)
- Changed slider thumbs to prevent crossing each other (e5430f9)
- Fixed keyboard navigation (49d4068, 134c73e)
- Changed slider to support very small widths (f8d0466)
TextInputLayoutMaterialDatePickerTransitions / Motion- Changed MaterialContainerTransform to skip transition instead of crash when no view bounds are found(0e41541)
- Fixed zero-length motion path container transform visual bug (b9d70d3)
- Added MaterialElevationScale transition (c438a26)
- Fix duplicate container transform when returning during Activity transitions (889fca5)
MaterialAutoCompleteTextViewA11y- Changed the editable exposed dropdown menu's a11y class name to be EditText instead of a drop down since the primary action for the user is to type (a97a555)
CollapsingToolbarLayoutChip- Fixed font paddings alignment (b1dfadb)
ExtendedFloatingActionButton- Fixed ripple issue (47ab850)
BottomSheet- Updated peek height gesture inset behavior to only add extra inset if necessary (2664ee9)
Other
Full list of changes
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