Skip to content

Releases: material-components/material-components-android

1.9.0-beta01

16 Mar 18:35
Compare
Choose a tag to compare

Dependency Updates

  • No 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

21 Feb 19:04
Compare
Choose a tag to compare

Dependency Updates

  • No 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

24 Jan 23:06
Compare
Choose a tag to compare

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
    • handle setEnable chil...
Read more

1.9.0-alpha01

18 Jan 22:24
Compare
Choose a tag to compare

What's new

Dependency Updates

  • No dependency updates.

Library Updates

  • Carousel
    • Add developer documentation (be9f16c)
    • Release carousel component (4ecba81)
  • SideSheet
    • Add SideSheetCallback listener to SideSheetBehavior to track @SheetState state change events (2468d6c)
    • Disabled lift on scroll in Side Sheet demo. (e92414c)
    • Renamed references to "outwards" to "outer". (8e12e31)
    • Renamed private calculateSlideOffsetBasedOnOutwardEdge method to calculateSlideOffset in SheetDelegate and RightSheetDelegate. (e88e341)
    • Added accessibilityPaneTitle to side sheet. (3b61327)
    • Integrated tokens. (e7d757a)
    • Removed unused methods in SheetDialog and SideSheetDialog. (af16b05)
    • Add detached variant of modal side sheet. (ad3cf5a)
    • Added detached variants of standard and coplanar sheets. (938105a)
    • Fixed issue where sheet would jump to the far edge of the screen in RTL without temporary fix. (2fd2d66)
    • Added modal side sheet documentation. (2e9b39f)
    • Added explicit style definition to coplanar sheet catalog demo. (2752958)
    • Updated close sheet button content description in catalog. (7096161)
    • Added coplanar side sheet with APIs for setting a coplanar sibling view. (bc61d6d)
    • Set accessibility focus to the side sheet when expanded. (48a3a75)
    • Release Side Sheet catalog demo. (1081537)
    • Rebrand "Adaptive Sheets" demo to "Side Sheet". (f0a0538)
    • Fix vertically scrolling sheet swipe issue by deleting most of the nested scrolling code (401527f)
    • Cancel modal side sheet scrim on STATE_HIDDEN. (d481ddd)
    • Restrict SheetDialog methods from the public API surface and rename getDismissWithAnimation. (c64f572)
    • Renamed SheetEdge#RIGHT to SheetEdge#EDGE_RIGHT. (2ab5430)
    • Made SheetDialog abstract base class and Sheet interface package-private. (0f9c6fc)
    • Add @RestrictTo annotations to restrict SheetEdge annotation interface. (6476acd)
    • Made SideSheetBehavior extendable. (b384b9b)
  • Tokens
  • Badging
    • Integrated component tokens. (03bd77f)
  • MaterialCardView
  • TopAppBar
    • Integrated tokens. (44445fa)
    • Fix input rectangle being modified in onRequestChildRectangleOnScreen() (7b8faef)
  • Tabs
    • Fix confusing documentation (2465192)
    • Fix confusing documentation (1396004)
    • Fix bug with setScrollPosition not updating indicator due to onLayout call drawing the indicator below the selected tab. (3194671)
    • Fixing bug with animation flicker when using tabs with ViewPager2 (84b7bc3)
  • Material 3
    • Updated developer documentation. (5c23aff)
    • Fixed issue that caused the wrong component to be focused on automatically when talkback is active. (e2c8cba)
    • Updated search bar/view UI to match spec and cleaned up the API. (d0b616c)
    • Updated style to match updated M3 spec. (dc2e973)
  • BottomAppBar
    • Change Bottom App Bar to place FAB through y translation rather than through margins (f0053fd)
    • Request layout for FAB when BAB changes so that FAB will always be aware of BAB changes (4bdfb8b)
  • Color
    • Internal color updates (b892849)
    • Internal Color changes. (e7e9747)
    • Added support for missing color roles. (169bbca)
    • Updated content color implementation. (1825b04)
    • Internal Changes (bd89d83)
    • Added framework color roles support for content color (ce68ec6)
    • Internal changes (94c73cc)
    • Added tonal surface color theme attributes and updated themes. (989d574)
    • Interal changes (ef76670)
  • Catalog
    • Fix CardSelectionModeActivity sample (4bd5e61)
    • Applied edge-to-edge to modal side sheet (ee00523)
    • Fix incorrect time stamps (86fc5fa)
    • Updated search demo to change search bar hint (30cc7ce)
    • Updated Catalog demo to change search bar/view demo title. (4bff273)
    • Applied edge-to-edge to preferences bottom sheet (695fb4a)
  • Menu
  • Slider
    • Refactor RTL test utils into common package. (0af0368)
    • Add mouse support for slider control. (93f8ffb)
    • Fixed label breaking near edge. (484281f)
    • Added API for setting the radius of active/inactive tick in xml and Java. (7bbbe39)
  • TimePicker
    • Limit 24h input validation to 23 (7f1def6)
    • Integrated M3 tokens. (14fa66a)
  • Transitions / Motion
  • MaterialDatePicker
    • Fix headerTitle text size (09f2607)
    • Unhide setFirstDayOfWeek (11c1df9)
    • Capitalize standalone date (d4c16e8)
    • Update text appearances (bb3ea6e)
  • A11y
    • Fix incorrect state (3b99749)
    • Improve date input validation feedback follow up (cd5246f)
    • Improve date input validation feedback (e1688f3)
  • Switch
    • Use MaterialSwitch instead of SwitchCompat in Catalog. (68688e9)
  • BottomNavigationView
  • NavigationView
  • Dialog
  • RadioButton
  • Documentation
    • Updated inaccurate anatomy diagram labels and a couple of other minor tweaks. (d5a3701)
    • Add note about the minimum library version required to use the Search and Side Sheets components. (dcf2487)
    • Remove smart characters from doc comments (87ce239)
    • Added coplanar side sheet documentation. (07354f9)
    • Added warning about known issue in slider where label doesn't scroll along with the screen. (6c85b59)
    • Internal change (3dbffd3)
    • Update documentation (eebd04e)
    • Fixed package path in developer documentation. (ee52406)
  • Other
    • Changed the nav drawer's width from 232dp to wrap_content. (08595de)
    • Internal change (88a05f3)
    • Refactored status bar spacer edge-to-edge detection to work based on insets (a241ee9)
    • Internal clean up. (360af30)

Full list of changes

1.8.0-rc01...1.9.0-alpha01

1.8.0-rc01

06 Jan 17:44
Compare
Choose a tag to compare

What's new

Dependency Updates

  • No 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

09 Dec 19:20
Compare
Choose a tag to compare

What's new

Dependency Updates

  • No 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
    • Update text appearances (ffbf835)
  • 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

22 Nov 23:28
Compare
Choose a tag to compare

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
    • Remove elevation shadows (e393748)
  • 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

24 Oct 17:14
Compare
Choose a tag to compare

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
    • Add input mode selector (09f1ee5)
  • 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.7.0

19 Oct 20:42
Compare
Choose a tag to compare

What's new since 1.6.1

  • All new Switch component with a new look! Check out the updated documentation for details.
  • New Shape system that is now being used by all components. Learn about the shape system and see how its used in the Material3 theme and components by checking out the updated documentation
  • Checkbox has been redesigned and now supports indeterminate and error states! Check out the updated documentation.
  • BottomAppBar has been redesigned! Check out the updated documentation
  • New Icon Button support has been added including outlined, tonal, and filled variants!

New minimum requirements for your app's project:

Dependency Updates

Dependency Previous version New version
androidx.appcompat 1.5.0-beta01 1.5.0
androidx.core 1.5.0 1.6.0
androidx.test 1.1.0 1.4.0
Android Gradle Plugin (AGP) 4.0.0 7.2.0
Gradle 6.1.1 7.3.3
Java Version 1.7 (7) 1.8 (8)

Other highlights

  • MaterialButton
    • Added methods to not toggle checked state on buttons on click (a601107)
    • Updated M3 button style to add outlined icon button style (467a2c9)
    • Updated M3 button style to add filled tonal icon button style (14578ed)
    • Updated M3 button style to add filled icon button style (25606cf)
    • Fix icon textStart/End alignment with multiline text (b6b895a)
    • Fix icon position with multiline text (19d0500)
  • Documentation
    • Updated typography guidelines to M3 (104a342)
    • Added an example to demonstrate how to make bottom sheet dialog in edge-to-edge mode (57a3c98)
    • Updated Snackbar doc regarding CoordinatorLayout (ef2c2fa)
    • Add status bar / edge-to-edge section to Top App Bar doc (b8e1f97)
  • TopAppBar
    • Fixed bug in HeaderScrollingViewBehavior that causes child translation Y not to be reset to default if the behavior is changed from an overlapping to non-overlapping behavior in layoutParams.setBehavior (00c62d2)
    • Excluded views that are GONE from scroll range calculation (687e735)
    • Fixed collapsing title issue with different fonts (0c341c4)
    • Added setLiftOnScrollTargetView() method (d6c4354)
  • A11y
    • Made multi-selection Chips announce as Buttons (d4c2c95)
    • Made drawer announce its number of items (b1f7d5b)
  • TextInputLayout
    • Added a new custom length counter field and getters/setters to switch how text length is calculated for the counter. (4ded01e)
    • Fixed hint is not displayed when expanding space is limited (73cb1b6)
    • Fixed icon ripples shown behind the edit text (2c0e42f)
    • Updated shapes to use M3 attrs/styles. (0e4e44e)
  • Color
    • Fixed HarmonizedColorsOptions.Builder#setColorAttributes is marked as nullable (824a12b)
  • Transitions / Motion
    • Updated container transform to use new motion system. (f2f454b)
    • Opened MotionUtils and update resolveThemeInterpolator to load both new and legacy easing attributes. (894edb6)
  • Chip
    • Migrated M3 chip styles to new shape system. (3fc53ac)
    • Fixed chip layout not updating when programmatically setting text size (788866e)
  • Snackbar
    • Added shape theming support and update M3 style to use new shapeAppearanceCornerExtraSmall (a717813)
    • Made dismiss direction the same as swipe direction (5b9f27a)
  • TimePicker
    • Properly align text vertically in MaterialTimePicker on S+. (703249d)
    • Migrated to new shape system (f302da7)
    • Fixed restoring hour/minute selection when switch to text mode (72abed0)
  • BottomSheet
    • Disable drag handle when restricting expansion (d4da5b1)
    • Handle half-expanded state when drag handle clicked (f0e6625)
    • Created a drag handle view which support accessibility control (ac7b761)
    • Exposed bottom sheet hide friction with get/set methods. (be1b38c)
    • Migrated to to new shape system. (921868d)
  • Divider
    • Fixed lastItemDecorated not being applied to horizontal orientation (92caa19)
    • Fixed extra space when lastItemDecorated = false (714521b)
  • Slider
    • Fixed label visibility when slider is hidden (ed11e69)
    • Updated tooltip shape style to use M3 shape system. (75af80c)
  • MaterialCardView
    • Migrated shape appearance to new shape system. (bfce84a)
  • CollapsingToolbarLayout
    • Added experimental API to allow generic customizations of the StaticLayout.Builder used for the title text (241aa5c)
    • Added ability to set ellipsis on title in CollapsingToolBar (7b043c3)
  • NavigationRail
    • Updated active indicator to use new shape system. (f700e6d)
  • ProgressIndicator
    • Fixed indeterminate progress indicator not working on API 22 (61cbb8c)
  • BottomNavigationView
    • Updated item ripple to be contained within active indicator shape when enabled. (11578b3)
    • Updated active indicator to use new motion system. (1995438)
    • Updated active indicator to new shape system. (9a16aa4)
  • ExposedDropdownMenu
    • Added support for default/ripple background colors for the selected item of the exposed dropdown menu when the default MaterialAutoCompleteArrayAdapter is being used. (6206ff5)
  • Switch
    • Update dev doc with the new switch design (f469720)
    • Added thumb icon tint to the new switch styles (2f33cfc)
    • Added associated text styles (06bba00)
    • Added material switch style to M3 themes (1e08c68)
    • Created an icon style for the new switch design (a3ca744)
    • Support tinting thumb & track according to thumb position (3b257c0)
  • MaterialDatePicker
    • Migrated to new shape system (91a2550)
    • Hide the keyboard when switching to calendar mode (5d6678c)
  • FloatingActionButton
    • Migrated "regular/default" sized styles to new shape system. (25482b1)
    • Migrated "Large" styles to use new shape system. (30bb583)
    • Migrated "Small" styles with new shape system. (acc7569)
    • Updated FAB to use new motion attributes. (934985e)
  • BottomAppBar
    • Changed default Material3 theme to follow use BottomAppBar M3 specs (53b3001)
    • Added an attribute to remove embedded FAB elevation (f2423de)
    • Added fab end margin attribute (88a73eb)
    • Added menu alignment attribute (397e48f)
    • Generated resources from tokens. (4188995)
    • Added new anchor mode attribute for FAB for an embedded option (cab45dd)
  • ExtendedFloatingActionButton
    • Updated show and hide motion specs to use motion tokens. (5c0003c)
  • Checkbox
    • Added indeterminate state support to the checkbox. (4da7ce1)
    • Updated checkbox to M3 look. (1666fbc)
    • Added support for error state. (8dd9c7e)
  • Tabs
    • Fixed indicator ...
Read more

1.8.0-alpha01

01 Sep 21:02
Compare
Choose a tag to compare

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

  • Button

    • Added support for toggleable Icon buttons. (8a4af07)
  • Divider

    • Fixed logic of determining whether to draw divider in MaterialDividerItemDecoration. (6f547d4)
  • BottomSheet

    • Add shouldRemoveExpandedCorners attribute (6e6c53a)
    • 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)
    • Fixed drag view alpha not changing when swipeDirection is END_TO_START (39b4c76)
    • Add method to calculate slide offset (2958d8d)
    • Add attribute for significant velocity threshold (d845db8)
  • TextInputLayout

    • Added method to set corner family programmatically and a setShapeAppearanceModel method for greater customizability of the box background shape. (08c40d8)
    • Update motion specs for hint animation (6b53f62)
    • Add scale type setters/getters for start and end image buttons in the TextInputLayout (e284e57)
    • Adding set/get methods to control minimum width and height for start/end icons (633b3ce)
  • TopAppBar

    • Make a new setter for scroll effect and make SCROLL_EFFECT_COMPRESS public (14415a1)
    • Added documentation for status bar foreground on scrolling app bars. (32f41ff)
  • Slider

    • Update motion attributes (c7a3d5e)
    • Release slider thumb if gesture has been cancelled (f3a5f2f)
    • Ensured the minimum touch size of handle is 48dp (f3952f8)
  • MaterialDatePicker

    • Expose CalendarConstraints start and end getter methods (95ab979)
    • Add initialize() method to DayViewDecorator to better support configuration changes (be650c4)
    • Refactor header styling to allow for multiline title with description text (debe22e)
    • Hide month pagination from the year picker (51b6054)
    • Add ability to customize background color to DayViewDecorator (24201b4)
    • Add support for decorating day views and a demo for circle indicators (bca0f2e)
  • TimePicker

    • Fix text appearance on the clock display (0dbea2d)
    • Use a single layout for time input (60bc025)
    • Fix text and cursor alignment on the clock display (16edbb9)
    • Fix TimePicker appearance for RTL (b3acd17)
    • 2-ring support for 24H clock (cbc0711)
  • Switch

    • Update dev doc with the new switch design (a6df254)
    • Move public.xml to the correct directory (aa59bdd)
  • A11y

    • Fix focus when changing input mode (eca825f)
    • Update hour content description for 24h clock (ee19b01)
    • Make Clock text scale with system font size (e9fc0a0)
  • BottomAppBar

    • Update motion specs for show/hide bar (21b74f9)
  • CollapsingToolbarLayout

    • Exposing methods to set text size for collapsed and expanded text size (29bed9a)
  • Tabs

    • Update motion attributes for tab layout (d1c5a52)
    • Fix icon position in icon-only tabs (cebf591)
  • ProgressIndicator

    • Finish all visibility animations when animate = false (26aa22b)
  • ExtendedFloatingActionButton

    • Update extend/shrink motion spec (9db041c)
  • Snackbar

  • Shape

    • Change relative corner size behavior for "vertical" shapes (158d9f0)
    • Fix rotation angle calculation (41eb6d0)
  • Catalog

    • 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)
    • Fix favorite row button alignment in lower apis. (849be73)
    • Updated color in Crane, Fortnightly, and Shrine with the colors generated from custom theme builder. (676a658)
    • Moved edge to edge mode from the app header to CatalogPreferencesDialogFragment. (98ce465)
    • Add ability to favorite a specific demo fragment/activity to launch on start (15196f5)
    • Updating catalog to remove M2 options for Bottom App Bar (8bec167)
  • Other

    • Add @CanIgnoreReturnValue to some APIs that return this. (44cc9b7)
    • Update lerp to accept input ranges of any size. (1a336b5)
    • Simplify size computations for some views (41d4460)
    • Added AnimatableView Interface. (edcb7fb)

Full list of changes

1.7.0-rc01...1.8.0-alpha01