Releases: material-components/material-components-android
Releases · material-components/material-components-android
1.9.0-beta01
Dependency Updates
Library Updates
Badging
- Integrating tokens (842df49)
- Add shape appearance for badges (89a2a64)
Carousel
- Updated MaskableFrameLayout to use Outline path clipping on 33+ only. (14535c5)
- Updated setForceCompatClipping visibility for testing. (b0c1edf)
- Updated MaskableFrameLayout to clip more performantly. (a4669fd)
- Changed Maskable.add/removeOnMaskChangedListener to Maskable.setOnMaskChangedListener. (67956ee)
- Fixed child index bug causing items to be ordered incorrectly. (668f03e)
Documentation
- Fix doc formatting for github (78dd5cc)
Tabs
- Fix issue with indicator not being drawn when viewpager starts scrolling before onLayout is called (a84bd90)
Full list of changes
1.9.0-alpha02...1.9.0-beta01
1.9.0-alpha02
Dependency Updates
Library Updates
A11y
- Updated accessibility class name (8656683)
Badging
- Updated M3 style to match specs. Alignment tweaks, text appearance change (3c1ac05)
- Added new 'offsetAlignmentMode' attribute that determines where the offset starts for the badge. (d0d0f54)
BottomNavigationView
BottomSheet
- Made scrollable content demo behave consistently in edge-to-edge mode (3e6a196)
- Animate bottom sheet position when keyboard is shown using WindowInsetsAnimationCompat API (697d93a)
Carousel
- Restricted MultiBrowseCarouselStrategy's forceCompactArrangement constructor (112a0bd)
- Implemented smoothScrollToPosition (6166e73)
- Fixed scroll offset calculation error when last focal keyline comes after the last child (220415d)
- Fixed MultiBrowseCarouselStrategy method visibility. (795979c)
- Renamed Maskable.getMaskRect to Maskable.getMaskRectF (4b1a890)
- Renamed CarouselConfiguration to CarouselStrategy (fc0f53a)
- Updated CarouselConfiguration visibility and improved documentation (85c006b)
- Changed CarouselConfiguration to have an empty constructor and pass Carousel in through onFirstChildMeasuredWithMargins (8014267)
- Improved documentation and throw when CarouselLayoutManager children are not Maskable. (67b251a)
- Updated to support MaterialDivider and added helper for getting the bounds of a masked item from the layout manager. (e32e625)
- Updated assets for Carousel demo (0dd220a)
- Fixed explore by touch causing list to scroll (1a25706)
- Fixed MultiBrowseCarouselConfiguration javadoc (26697c3)
- Removed CenteredCarouselConfiguration. (ff48bc5)
- Added a11y focus scrolling support (0f179b3)
Catalog
- Fixed flickering color fill in preferences demo (2e7979b)
CollapsingToolbarLayout
- Fixed issue with multiline title text flickering when titleCollapseMode=fade (bdb6f5d)
Color
- Added new theme attributes for fixed accent colors. (4f3dc3e)
Documentation
- Updated color.md to have better java/xml code snippet formatting (5eafe9b)
MaterialDatePicker
- Fixed broken layout when custom description is used (56f816c)
- Fixed NPE (2cef555)
ProgressIndicator
- Fixed linear progress indicator with corner radius (0ce6ae4)
Search
- Fixed anatomy search bar documentation (122ab7a)
- Fixed expand/collapse animation for large screen devices (e2636ff)
SideSheet
- Modularized side sheet demo. (8c2b511)
Snackbar
- Fixed the snackbar position when the anchor view layout listener is enabled (abd1d1c)
Tabs
- Fixed scrolling issue when using scrollable tab layout with ViewPager (e9246ed)
TextInputLayout
- Fixed cutout not working when backgroundTint is set (25b3c2b)
TimePicker
Tokens
- Introduced new accent color tokens. (dac9450)
- Updated to v0.157. (23dc14c)
TopAppBar
- Added
app:layout_scrollEffect
to public attributes. (b3f32d4)
- Added AbsListView to views that support nested scrolling (80ec5cc)
- Override inflateMenu() to stop dispatching item changes during inflation for a performance improvement (86600c2)
Transitions / Motion
- Updated motion documentation to include motion subsystem (73678f5)
Full list of changes
1.9.0-alpha01...1.9.0-alpha02
1.8.0
What's new since 1.7.0
- Brand new Side Sheet component with standard, modal and coplanar variants! Check out the Side Sheet design guidance and developer documentation for more details.
- Brand new Search component! Check out the Search design guidance and developer documentation for more details.
- Integrated tokens for Bottom Sheet, Checkbox, Chip, Dialog, Divider, MaterialButton, NavigationRail, ProgressIndicator, Slider, Switch, Tabs, and TextInputLayout.
Dependency Updates
Dependency |
Previous version |
New version |
ext.kotlinVersion |
1.3.50 |
- |
errorproneVersion |
- |
2.15.0 |
compileSdkVersion |
32 |
33 |
targetSdkVersion |
32 |
33 |
Library Updates
A11y
- Improve date input validation feedback follow up (1200e25)
- Improve date input validation feedback (f394903)
- Improve TalkBack focus order when selecting a day (dff70c0)
- Improve date selection announcements (5c5b1e8)
- Announce start/end dates (2f9844b)
- Announce current year and day (c6539f2)
- Fix TalkBack announcements when switching between year/day selection views (62b2b19)
- Announce selection (be8b8d4)
- Improve focus handling (ceacaa6)
- Request focus on search menu when showing (968e035)
- Fix focus when changing input mode (eca825f)
- Update hour content description for 24h clock (ee19b01)
- Make Clock text scale with system font size (e9fc0a0)
Badging
BottomAppBar
- Request layout for FAB when BAB changes so that FAB will always be aware of BAB changes (10fe695)
- Add attribute to remove shadow on container (1322e61)
- Added the handle to the bottom sheet. (4c11606)
- Update motion specs for show/hide bar (fdd8dae)
- Updating catalog to remove M2 options (8bec167)
- Small bugs and padding adjustments (63f98bf)
BottomNavigationView
- Remove elevation shadows (e393748)
- Updated active text label to use a bold typeface. (11e98f2)
- Fix hardcoded number of children (a2ce1dd)
BottomSheet
- Update motion attributes for bottom sheet dialog animation (1cdb371)
- Token integration (e474cf4)
- Update elevation to match specs (617e582)
- Sync custom actions with drag handle views (0804031)
- Only remove round corners in M3 styles when it's fullscreen (6631abb)
- Add shouldRemoveExpandedCorners attribute (6e6c53a)
- Add method to calculate slide offset (2958d8d)
- Add attribute for significant velocity threshold (d845db8)
- Corrected guidance to use modal bottom sheet default style theme attribute for standard bottom sheets and added a callout explaining that there is no default style theme attribute for standard bottom sheets. (4865639)
- Disable drag handle when restricting expansion (c9e855e)
Catalog
- Fix incorrect time stamps (305e19d)
- Updated search demo to change search bar hint (fafee33)
- Updated Catalog demo to change search bar/view demo title. (df85be2)
- Applied edge-to-edge to preferences bottom sheet (c440d86)
- Add themed icon (45a569f)
- Add input mode selector (09f1ee5)
- Fix navigation bar overlaps ui #2927 (5c2eb45)
- Replace android.support dependencies with androidx (3d32f73)
- Update date picker demo text appearances to M3 (c19efa0)
- Updated button demo to provide the correct content description for icon only buttons. (2697e0f)
- Added search/filter functionality to MDC Catalog. (549fe19)
- Fix the favorite icon vertical alignment on demo landing rows (745acfd)
- Update Catalog preferences demo to use MaterialSwitch (229eb9d)
- Fix favorite row button alignment in lower apis. (849be73)
- Updated catalog preferences for shape corner sizes. (3daa028)
Checkbox
- Update unselected outline color to ?attr/colorOnSurfaceVariant to match tokens. (5d261f5)
- Integrated tokens (e67e68d)
- Fixed NPE crash due to layer drawable's constant state issue in APIs < 23. (b8e1b57)
- Fix a11y announcement for indeterminate state. (6f474b3)
- Fixed pre 21 issue where the icon did not update its color according to its state properly (ccf67f7)
- Added indeterminate state support to the checkbox. (8f149b1)
- Fixed icon color not updating correctly in light mode in pre 21. (a4d6f51)
- Fix pre-21 issue where a child of the layer drawable (the button and/or the icon drawables) may not have its constant state set up properly. (079371f)
- Fixed issue where AppCompatCheckBox would not display its drawable when a Material theme was being used. (9ca8a80)
Chip
- Integrate Chip component tokens to Chip styles in M3. (cb65cc6)
CollapsingToolbarLayout
- Exposing methods to set text size for collapsed and expanded text size (29bed9a)
Color
- Updated Builder class for content color (2351fd9)
- Implement content color with resources loader (4619f31)
- Added content color api (8ca326a)
- Added the rest of the library for content color support. (8510596)
- Updated material color utilities library implementation. (f0e5bda)
- Refactored material color utilities library into its own directory. (9897bc2)
- Add additional condition to check dynamic color supported devices (17ac05d)
Dialog
- Updated enter/exit animation to use fade pattern and motion tokens. (8d8a0d1)
Divider
- Change shouldDrawDivider from private to protected to allow for more user flexibility. (b08257b)
- Integrated M3 tokens and updated color. (2f6ebb4)
- Fixed logic of determining whether to draw divider in MaterialDividerItemDecoration. (6f547d4)
Documentation
- Added warning about known issue in slider where label doesn't scroll along with the screen. (ca54c65)
- Add android dev doc and source link to the Material dev doc (00c9ce5)
- Update docs to remove links to Kotlin docs and remove Kotlin from dependency (bde2092)
- Update text field doc to include information about android:textColorHighlight (ae788ac)
- Changing the name for the AGP compatibility variable so that the IDE points to the right documentation. (2527cc2)
- Update typography guideline to M3. (bc1ec5a)
ExposedDropdownMenu
- Dismiss modal popup in dismissDropDown (644d141)
- Fix MaterialAutoCompleteTextView.setDropDownBackgroundDrawable(Drawable). (db115f0)
- Fixed missing icon activated color. (9147704)
ExtendedFloatingActionButton
- Add a
extendToWrapContent
attribute that can disable the current eFAB behavior of extending to wrap content (thus allowing extend
to return to its original width before shrinking) (d5b41c1)
- Update extend/shrink motion spec (9db041c)
MaterialButton
- Integrate M3 Tokens. (b9e8fb8)
- Use Layout to measure text width. (3b333ee)
- Added support for toggleable Icon buttons. (8a4af07)
MaterialButtonToggleGroup
Read more
1.8.0-rc01
What's new
Dependency Updates
Library Updates
Side Sheet
- Disabled lift on scroll in Side Sheet demo. (99664aa)
- Added accessibilityPaneTitle to side sheet. (516240d)
- Fixed issue where sheet would jump to the far edge of the screen in RTL without temporary fix. (a24832a)
- Added explicit style definition to coplanar sheet catalog demo. (35dfa92)
- Updated close sheet button content description in catalog. (0538a3c)
MaterialDatePicker
- Fix headerTitle text size (147463f)
- Improve date input validation feedback follow up (1200e25)
- Improve date input validation feedback (f394903)
Documentation
- Remove smart characters from doc comments (280a01c)
Full list of changes
1.8.0-beta01...1.8.0-rc01
1.8.0-beta01
What's new
Dependency Updates
Library Updates
Side Sheet
- Added coplanar side sheet with APIs for setting a coplanar sibling view. (8055a2c)
- Set accessibility focus to the side sheet when expanded. (0949e9c)
- Release Side Sheet catalog demo. (f707836)
- Rebrand "Adaptive Sheets" demo to "Side Sheet". (7f17891)
- Fix vertically scrolling sheet swipe issue by deleting most of the nested scrolling code (3bc1f6e)
- Cancel modal side sheet scrim on STATE_HIDDEN. (0c4e4a7)
- Restrict SheetDialog methods from the public API surface and rename getDismissWithAnimation. (9c8ea58)
- Add SideSheetCallback listener to SideSheetBehavior to track @SheetState state change events. (99e09b0)
- Renamed SheetEdge#RIGHT to SheetEdge#EDGE_RIGHT. (35d6051)
- Made SheetDialog abstract base class and Sheet interface package-private. (0c35d1d)
- Add @RestrictTo annotations to restrict SheetEdge annotation interface. (e6ca949)
- Made SideSheetBehavior extendable. (f7b3aac)
SearchBar
- Fixed issue that caused the wrong component to be focused on automatically when talkback is active. (8cbfd20)
- Updated search bar/view UI to match spec and cleaned up the API. (d049b1b)
- Updated style to match updated M3 spec. (be8ff16)
- Fixed package path in developer documentation. (73c47c2)
- Refactored status bar spacer edge-to-edge detection to work based on insets (38605f4)
- Updated search demo to change search bar hint (fafee33)
- Updated Catalog demo to change search bar/view demo title. (df85be2)
Tabs
- Fix bug with setScrollPosition not updating indicator due to onLayout call drawing the indicator below the selected tab. (1681b1d)
- Fixing bug with animation flicker when using tabs with ViewPager2 (ab3f203)
BottomAppBar
- Request layout for FAB when BAB changes so that FAB will always be aware of BAB changes (10fe695)
Transitions / Motion
MaterialDatePicker
Catalog
- Fix incorrect time stamps (305e19d)
- Applied edge-to-edge to preferences bottom sheet (c440d86)
Documentation
- Added warning about known issue in slider where label doesn't scroll along with the screen. (ca54c65)
- Internal change (83e045e)
Switch
- Update animations to use motion theming (b73cc61)
Other
- Update documentation (697156a)
- Update library version to 1.8.0-beta01 (20c61db)
Full list of changes
1.8.0-alpha03...1.8.0-beta01
1.8.0-alpha03
What's new
- SearchBar component is now available for use!
Dependency Updates
Dependency |
Previous version |
New version |
compileSdkVersion |
32 |
33 |
Library Updates
BottomSheet
- Update motion attributes for bottom sheet dialog animation (1cdb371)
BottomNavigationView
Checkbox
- Update unselected outline color to ?attr/colorOnSurfaceVariant to match tokens. (5d261f5)
NavigationView
- Disable drawing left and right insets if the nav bar is not edge to edge (cb384c5)
ExposedDropdownMenu
- Dismiss modal popup in dismissDropDown (644d141)
Color
- Updated Builder class for content color (2351fd9)
- Implement content color with resources loader (4619f31)
- Internal refactors (d0ca6ba)
- Added content color api (8ca326a)
MaterialDatePicker
- Update elevation to match specs (b813b2b)
- Improve inputs validation (4046525)
- Exposed method to set a custom formatter for text input fields. (276c117)
Chip
- Integrate Chip component tokens to Chip styles in M3. (cb65cc6)
Search
- Renamed search style attributes to add "material" prefix. (978ffdf)
- Added new SearchBar and SearchView components (d1bacf5)
- Added developer documentation. (4d4a2e2)
- Removed M3 search style references from Material theme. (2977a75)
Tabs
- Fix bug with selected tab text appearance when swiping in viewpager. (4a0e1a0)
- Fix default tabTextAppearance (cb1905d)
- Fixing bug with animation cancelling if tab is double-tapped (857f481)
- Fix tab indicator animation (f9a37c5)
NavRail
- Added design tokens for M3 NavigationRail Component. (d1b682f)
Catalog
A11y
- Improve TalkBack focus order when selecting a day (dff70c0)
Switch
- Update animations to use motion themeing. (3fc3ec1)
ExtendedFloatingActionButton
- Add a
extendToWrapContent
attribute that can disable the current eFAB behavior of extending to wrap content (thus allowing extend
to return to its original width before shrinking) (d5b41c1)
Dialog
- Updated enter/exit animation to use fade pattern and motion tokens. (8d8a0d1)
Divider
- Change shouldDrawDivider from private to protected to allow for more user flexibility. (b08257b)
SideSheet
- Add STATE_HIDDEN to SideSheetBehavior#getState javadoc. (7a706cc)
- Changed modal side sheet shape to large. (1653055)
Button
- Use Layout to measure text width. (3b333ee)
Other
- Update compileSdkVersion and targetSdkVersion to 33 (T) (090b988)
- Updated active text label to use a bold typeface. (b1bd580)
Full list of changes
1.8.0-alpha02...1.8.0-alpha03
1.8.0-alpha02
What's new
- New
SideSheet
component! Standard and modal configurations available.
Library Updates
SideSheet
- Added standard and modal side sheets. (10d72ee)
- Added standard side sheet documentation. (4364c4f)
- Moved behavior_draggable attribute to the resources package. (1d3e374)
MaterialDatePicker
- Enable auto-sizing of the date selection text (32f1118)
- Update string translation for datepicker. (8dcdd26)
- Add method to specify a content description to decorated views (7bc5689)
- Make new public getter methods for start/end/openAt values with long return types for CalendarConstraints (6643695)
- Update doc to include DayViewDecorator. (aff6a94)
TopAppBar
- Update motion specs (c8108b1)
- Adding new attribute liftOnScrollColor that disables elevation overlay and allows users to change the app bar color (c587dd1)
- Fix issue with a physical keyboard scroll not collapsing toolbar (9df6c9d)
MaterialCardView
- Update motion specs for Z-shadow (3975a2e)
- Add fade animation for checked icon drawable (7d129ea)
TextInputLayout
- Fix label cutout doesn't work on API < 18 (a352178)
- Fixed counter overflow text color getter (e76eaff)
- Integrated tokens for text fields and the exposed dropdown menu. (e7697c2)
- Updated cursor color on error for APIs >= 29. (fbd75ec)
- Update motion attributes for textfield animations (c98480c)
- Updated expanded label color to take error color when on error. (a85204e)
Slider
- Add current value to talkback for Slider (9e210ea)
- Integrate component tokens (4a1e6bc)
- Fix compat halo visibility (bcb551b)
- Do not capture inflation parameters for reuse (a137c28)
Tabs
- Integrated tokens into M3 styles. (d0460f3)
- Fixed potential NPE when updating tab view. (34a1dde)
- Add selectedTabTextAppearance attribute (00220d0)
- Setting a custom view on the tab should replace the current custom view (3c0c9e7)
- Do not impose margins in custom tab views (d68c0f8)
Documentation
- Add android dev doc and source link to the Material dev doc (00c9ce5)
- Update spec link to the new Material3 site (bdb8253)
- Fix broken column due to extra newline (ad0d73a)
- Update docs to remove links to Kotlin docs and remove Kotlin from dependency (bde2092)
A11y
- Improve date selection announcements (5c5b1e8)
- Announce start/end dates (2f9844b)
- Announce current year and day (c6539f2)
- Fix TalkBack announcements when switching between year/day selection views (62b2b19)
- Announce selection (be8b8d4)
- Improve focus handling (ceacaa6)
Material 3
- Add additional condition to check dynamic color supported devices (347cb9e)
TimePicker
- Fix NumberFormatException (0c204b8)
- Fix divider alignment on the clock display (6d956ed)
- Pre-fill hour and minute edit texts in text input mode (56ea071)
- Revert pre-fill hour and minute edit texts in text input mode (9806ad9)
- Pre-fill hour and minute edit texts in text input mode (087da2f)
- Fix keyboard not showing at first in text input mode (15c7128)
- Update motion specs (a4f6a1e)
Tokens
- Refreshed outdated component token resources files. (ed77ab3)
- Upgraded to v0.126 for 1p and 3p. (1ef53e2)
- Updated to correctly convert shape tokens with asymmetric shape value. (02327c3)
BottomSheet
- Update elevation to match specs (6cf56a5)
- Update elevation to match specs (617e582)
- Sync custom actions with drag handle views (0804031)
- Only remove round corners in M3 styles when it's fullscreen (6631abb)
ProgressIndicator
- Integrates tokens into M3 styles. (ab063b7)
Catalog
BottomNavigationView
- Updated active text label to use a bold typeface. (11e98f2)
- Fix hardcoded number of children (a2ce1dd)
NavigationView
- Fix subheaderInsetEnd setter (88c448e)
BottomAppBar
- Add attribute to remove shadow on container (1322e61)
- Added the handle to the bottom sheet. (4c11606)
Theming
- Added a theme attribute for outline-variant color. (ac6f13c)
MaterialButtonToggleGroup
- Handle setEnable for children (e8bfad5)
- Added the default Material3 toggleGroupStyle (b6c6600)
Divider
- Integrated M3 tokens and updated color. (2f6ebb4)
Switch
- Removed resources from deprecated tokens. (112378d)
Checkbox
Color
- Added the rest of the library for content color support. (8510596)
- Updated material color utilities library implementation. (f0e5bda)
- Refactored material color utilities library into its own directory. (9897bc2)
ExposedDropdownMenu
- Fix MaterialAutoCompleteTextView.setDropDownBackgroundDrawable(Drawable). (db115f0)
Other
- Explicitly denote the target SDK version of bottom sheet tests (9907579)
- Fixed SwipeDissmissBehavior not work when down touch event consumed. (624543f)
- Set the outline to a path whenever possible (8cd2341)
- Update string translations (7c56473)
- Add internal method to disable hiding gestures (158a413)
Full list of changes
1.8.0-alpha01...1.8.0-alpha02
1.8.0-alpha01
What's new
MaterialTimePicker
redesign: 2-ring support for 24H clock!
- Updated SDK target version to 33 (89a2b6f)
Dependency Updates
Dependency |
Previous version |
New version |
errorproneVersion |
N/A |
2.15.0 |
Library Updates
Full list of changes
1.7.0-rc01...1.8.0-alpha01