Skip to content

Releases: material-components/material-components-android

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

1.7.0-rc01

30 Aug 21:26
Compare
Choose a tag to compare

Dependency Updates

  • No dependency updates

Library Updates

  • Checkbox
    • Fixed NPE crash due to layer drawable's constant state issue in APIs < 23. (7e18ac4)
    • Fixed a11y announcement for indeterminate state. (ec1663f)
  • Snackbar
    • Made snackbar javadoc more clear of how its dismissing works. (5cb92c8)

Full list of changes

1.7.0-beta01...1.7.0-rc01

1.7.0-beta01

11 Aug 19:41
Compare
Choose a tag to compare

Important

New minimum requirements for your app project:

What's new

  • Updated MaterialCheckBox component with indeterminate state support!
  • New icon-only styles for MaterialButton component!
  • New MaterialSwitch component! (Spec)
  • Updated BottomAppBar component! (Spec)

Dependency Updates

Dependency Previous version New version
androidx.appcompat 1.5.0-beta01 1.5.0

Library Updates

  • Divider
    • Fixed lastItemDecorated not being applied to horizontal orientation. Also updated the demo to include both orientations. (92caa19)
  • BottomSheet
    • Disable drag handle when restricting expansion (d4da5b1)
    • Handle half-expanded state when drag handle clicked (f0e6625)
  • Catalog
    • Updated Catalog preferences demo to use MaterialSwitch (f82e727)
    • Updated catalog preferences for shape corner sizes. (f162494)
    • Fixed corner family options in preference. (f6942a4)
  • 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)
  • Checkbox
    • Fixed pre 21 issue where the icon did not update its color according to its state properly (2cc8932)
    • Updated checkbox documentation. (130a35c)
    • Added indeterminate state support to the checkbox. (4da7ce1)
    • Fixed icon color not updating correctly in light mode in pre 21. (a5f8e93)
    • Fixed 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. (f76b75a)
    • Fixed issue where AppCompatCheckBox would not display its drawable when a Material theme was being used. (04fed55)
    • Updated checkbox to M3 look. (1666fbc)
  • Slider
    • Fixed NPE when trying to remove labels when ViewOverlay doesn't exist yet (95e585c)
  • Badging
    • Fixed NPE in BadgeState (4f844ab)
  • Switch
    • Updated doc with the new switch design (f469720)
  • Documentation
    • Updated typography guideline to M3. (104a342)
  • BottomAppBar
    • Updated catalog to remove M2 options (048c35d)
    • Updated docs (be86168)
    • Small bugs and padding adjustments (949f623)
  • Color
    • Added additional condition to check dynamic color supported devices (81c2ded)
  • ExposedDropdownMenu
    • Fixed missing icon activated color. (3af5784)
  • Button
    • Added support for toggleable Icon buttons. (631f0eb)
  • Other
    • Added defensive null check for typeface passed in to util (2e815d2)

Full list of changes

1.7.0-alpha03...1.7.0-beta01

1.7.0-alpha03

14 Jul 21:05
Compare
Choose a tag to compare

Important

New minimum requirements for your app project:

What's new

  • New MaterialSwitch component! (Spec)
  • Updated BottomAppBar component (Spec)

Dependency Updates

Dependency Previous version New version
androidx.appcompat 1.4.0 1.5.0-beta01
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)

Library Updates

  • Switch
    • Update to AppCompat 1.5.0-beta01 and remove workarounds (also update compileSdkVersion/targetSdkVersion to 32) (e968929)
    • Tokenize the new switch styles (e9b5328)
    • Refine tinting logic to have better performance (072578d)
    • Add thumb icon tint to the new switch styles (2f33cfc)
    • Add associated text styles (06bba00)
    • Add material switch style to M3 themes (1e08c68)
  • BottomSheet
    • Add drag handle to scrollable demo (f89a91f)
    • Create a drag handle view which support accessibility control (ac7b761)
    • Do not find scrolling child that's not visible (1fe1618)
    • Update javadoc of setHideable() method (132ff88)
    • Fix BottomSheetDialog edge-to-edge mode (2d3024e)
    • Fix BottomSheetDialog edge-to-edge mode (fd8d30d)
    • Fix full-screen dialog layout after restrict expansion is enabled once (109748e)
  • ProgressIndicator
    • Renamed res/animator to res/anim. (04f4a1a)
    • Fix ProgressIndicator's size under a complex measurement (71bfaca)
    • Make progress indicator drawables scalable by setBounds() (69e484d)
  • Catalog
    • Small fixes (51c59fa)
    • Updated Buttons Demo to showcase toggleable icon only buttons. (273554f)
    • Updated checkbox catalog demo to include error state. (0cb355b)
    • Migrate M3 catalog to use the new Switch design (93e53d0)
  • Documentation
    • Add an example to demonstrate how to make bottom sheet dialog edge-to-edge (57a3c98)
    • Update Snackbar doc regarding CoordinatorLayout (ef2c2fa)
    • Update Getting Started Guide with new minimum requirements for 1.7.0-alpha02+ (cdc781d)
  • FloatingActionButton
    • Reorder styles. (5ff3930)
    • Integrate component tokens. (ac5c4df)
    • Combined Small, Regular, and Large styles in one catalog fragment. (ab04c9c)
    • Migrated "regular/default" sized styles to new shape system. (25482b1)
    • Fix the issue that state-list animator cannot be customized (ea12f84)
  • Tokens
    • Integrate component tokens. (2719859)
    • Included parent display group names in the output file comments. (cc317e1)
    • Updated formatter to add an new line between token_set sections for better readability. (cd37b91)
    • Integrated elevation overlay color. (d320d48)
    • Upgraded token resources to v0.99. (d0c3ea0)
  • Snackbar
    • Avoid update layout if bottom margins for anchor view does not change (fd5ee4a)
    • Add defensive null check for messageView.getLayout() in SnackbarContentLayout onMeasure (e981f2f)
  • Slider
    • Fix label visibility when slider is hidden (ed11e69)
  • TopAppBar
    • Add status bar foreground to compress catalog demo. (4e52469)
    • Exclude gone views from scroll range calculation (687e735)
    • Add clearNavigationIconTint() method (c5b37e6)
  • BottomNavigationView
    • Updated item ripple to be contained within active indicator shape when enabled. (11578b3)
  • ExtendedFloatingActionButton
    • Updated show and hide motion specs to use motion tokens. (5c0003c)
  • Checkbox
    • Added support for error state. (8dd9c7e)
  • MaterialButton
    • Add methods to not toggle checked state on buttons on click (a601107)
  • RadioButton
    • Refactored button tint color resource and updated docs (254abc5)
  • TextInputLayout
    • Delete unused paint (b18f45e)
    • Fix "android:enabled" attribute support (15fa4db)
    • Stop saving/restoring TextInputLayout's themeable fields (051410b)
  • CollapsingToolbarLayout
    • Added experimental API to allow generic customizations of the StaticLayout.Builder used for the title text (241aa5c)
  • BottomAppBar
    • Changing default Material3 theme to follow M3 specs (53b3001)
    • Token integration (f2f588a)
    • Add attribute to remove embedded FAB elevation (f2423de)
    • Add fab end margin attribute (88a73eb)
    • Add menu alignment attribute (397e48f)
    • Generated resources from tokens. (4188995)
    • Add new anchor mode attribute for FAB that has an embedded option (cab45dd)
  • Tabs
    • Mutate selected indicator drawable when it's being set (d1895cd)
    • Refine tab update logic from ViewPager adapters (36efca0)
    • Fixed indicator not updating when a tab to the start/left of the selected tab is removed. (2fc2e6a)
  • Transitions / Motion
    • Update documentation with new visual assets. (a9752ee)
  • TimePicker
  • NavigationView
    • Update foreground boundaries of menu items when setting a new foreground (4dc3d93)
  • Divider
    • When lastItemDecorated false then creates a blink with the last view contains a dropdown from visible to gone (03c4353)
  • ShapeableImageView
    • Don't change layer type when view is detached from the window (74b7706)
  • MaterialDatePicker
    • Improve error formatting (be8e4e2)
  • A11y
    • Fix announced Chip count and index (9b1a74b)
  • Chip
  • Other
    • Version 1.7.0-alpha03 (a40f5fa)
    • Automated g4 rollback of changelist 458265064 (34ac0ec)
    • Update guidelines for CollapsingToolbar + PreferenceFragmentCompat (201b4a0)
    • Automated g4 rollback of changelist 457744460 (10ac255)
    • Automated g4 rollback of changelist 458476376 (c49f961)
    • Added support for toggleable Icon buttons. (2d83321)
    • Automated g4 rollback of changelist 457648699 (65a3ac5)
    • Remove unused public.xml resources (cd80b71)
    • Automated g4 rollback of changelist 454163860 (ca2da6c)
    • Automated g4 rollback of changelist 457576897 (7e9045b)
    • Updated translated strings. We know how to say "Cancel" now :) (3fdfb6e)
    • Fixed overlapping of compat shadow of inner corners. (ecb6284)
    • Updated dev doc. (36e204f)
    • Update Appcompat and Emoji2 libraries from aosp-androidx-g3-release with build id #8479725 (eb54d6a)
    • Add glide to catalog dependencies. (8a352fd)
    • Automated g4 rollback of changelist 452075757 (a9a57af)
    • Added isMaterial3DynamicColorApplied attr to identify whether dynamic colors are being used in a theme. (7d0f1ba)
    • Migrated to new shape system. (3db2109)

Full list of changes

https://github.com...

Read more

1.6.1

31 May 19:18
948d5da
Compare
Choose a tag to compare

Dependency Updates

  • No dependency updates

Library Updates

  • TopAppBar
    • Add null check for logo ConstantState check (299c8e1)
    • Loosen check for scrollable child when adding a11y actions (dff14ca)
    • Fix scrolling for a11y (a5a738b)
  • Color
    • Fix Resources Loader bug for color harmonization (bef8ca1)
    • Provide better logging for ColorResourcesTableCreator (b33cf80)
  • Chip
    • Fix ChipGroup.getCheckedChipIds() returns wrong state (0356d7c)
  • TextInputLayout
    • Fix for TextInputLayout leak via AccessibilityManager. (#2718) (948d5da)
  • Other
    • Update library version to 1.6.1 (248d4c8)

Full list of changes

1.6.0...1.6.1

1.7.0-alpha02

25 May 15:18
Compare
Choose a tag to compare

Important

New minimum requirements for your app project:

What's new

  • New MaterialSwitch component! (Spec)

Dependency Updates

Dependency Previous version New version
androidx.appcompat 1.1.0 1.4.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)

Library Updates

  • Switch
    • Create icon style for the new switch design (a3ca744)
    • Added token generated resources. (6512092)
    • Support tinting thumb & track according to thumb position (3b257c0)
    • Add a workaround to get thumb position (72bac61)
    • Override switch width set by AppCompat to respect the drawable width (fd40fea)
    • Implement track decoration in the new design (1e7bd27)
    • Add thumb and track drawables for the new switch design (1414f9e)
    • Create a base skeleton of the new MaterialSwitch package/class (b2a3fbe)
  • Chip
    • Fix ChipGroup.getCheckedChipIds() returns wrong state (413a047)
    • Migrate M3 chip styles to new shape system. (3fc53ac)
    • Fix chip layout not updated when programmatically setting text size (788866e)
  • Snackbar
    • Fix margins are added multiple times when show() is called (46fa8cc)
    • Add shape theming support and update M3 style to use new shapeAppearanceCornerExtraSmall (a717813)
    • Make dismiss direction the same as swipe direction (5b9f27a)
  • MaterialButton
    • Updated M3 button style to add outlined icon button style. Updated catalog to showcase the same. (467a2c9)
    • Updated M3 button style to add filled tonal icon button style. Updated catalog to showcase the same. (14578ed)
    • Updated M3 button style to add filled icon button style. Updated catalog to showcase the same. (25606cf)
    • Always update drawable state when background changed (363e2b1)
    • Added materialIconButtonStyle attribute and updated M3 doc to document icon (only) button style and attribute. (402bdf4)
    • Migrated shape appearance to new shape system. (1d3bb00)
    • Fix the issue that button state is not updated (45b99f6)
  • Color
    • Added DynamicColorsTest. (66581f2)
    • Fix Resources Loader bug for color harmonization (78d2c1f)
    • Update Dynamic Colors condition (b3a7daf)
    • Provide better logging for ColorResourcesTableCreator (29fddaa)
    • Refactored ColorHarmonizationDemoFragment to DemoActivity (65e7506)
    • Refactored PreferencesActivity to allow configurations on any activity-level preferences/options (dfd8dba)
    • Added DynamicColorsTest. (a2507b8)
    • Updated color harmonization demo (dc65df3)
    • Fix resources being re-harmonized when wrapContextIfAvailable() is used. (f0f07c5)
    • Added ColorGrid classes for color harmonization demo. (0347587)
    • Add kyocera to dynamic colors allowlist and reorganized based on alphabetical order. (66990a1)
    • Fix HarmonizedColorsOptions.Builder#setColorAttributes is marked as nullable (824a12b)
  • TopAppBar
    • Fix copy constructors (382ce9c)
    • Add null check for logo ConstantState check (2ac796f)
    • Loosen check for scrollable child when adding a11y actions (4b81bb1)
    • Fix scrolling for a11y (72228f4)
    • Fix collapsing title issue with different fonts (0c341c4)
    • Fix margins not applied when collapsed and expanded text size and type face are the same (526ce8c)
    • Add setLiftOnScrollTargetView() method (d6c4354)
  • TextInputLayout
    • Add a new custom length counter field and getters/setters to switch how text length is calculated for the counter. (4ded01e)
    • Link OnItemSelectedListener of AutoCompleteTextView with the actual drop-down list (2db8b0c)
    • Fix hint is not displayed when expanding space is limited (73cb1b6)
    • Fix for TextInputLayout leak via AccessibilityManager. (673cefc)
    • Centralize icon view state handling logic (ac74bc3)
    • Move end icon and content description logic to the layout class (86b512a)
    • Centralize accessibility event dispatching logic for drop-downs (d3ab6d7)
    • Remove TextInputLayout.getEditText() calls from EndIconDelegates (7b2f924)
    • Fix icon ripples go behind the edit text (2c0e42f)
    • Move drop-down background and ripple creation to TextInputLayout class (1a42c74)
    • Updated shape to use M3 attrs/styles. (0e4e44e)
    • Create EndIconDelegate.deactivate() method and remove the relevant listener (a0e8c35)
  • A11y
    • Make multi-selection Chips announced as Buttons (d4c2c95)
    • Announce number of items in drawer (b1f7d5b)
    • Fix label for hour/minute EditTexts. (5b78bf4)
  • TimePicker
    • Properly align text vertically in MaterialTimePicker on S+. (703249d)
    • Clean up shape appearance hardcoded in layout files. (269830e)
    • Migrate to new shape system (f302da7)
    • Restore hour/minute selection when switch to text mode (72abed0)
  • BottomSheet
    • Add back accidentally removed setLightStatusBar method and annotate it as deprecated (53086a0)
    • Fix bottom sheet dialog status bar color adjustment (1a91e68)
    • Exposing bottom sheet hide friction with get/set methods. (be1b38c)
    • Migrated shape appearance to new shape system. (921868d)
  • Divider
    • Fixed extra space when lastItemDecorated = false (714521b)
  • Slider
    • Add back deleted tooltip shape appearance (64bdf9e)
    • Updated tooltip shape style to use M3 value. (75af80c)
  • Transitions / Motion
    • Update container transform to use new motion system. (f2f454b)
  • MaterialCardView
    • Migrated shape appearance to new shape system. (bfce84a)
  • CollapsingToolbarLayout
    • Allow application to Set ellipsis to Title in CollapsingToolBar (7b043c3)
  • NavigationRail
    • Update active indicator to use new shape system. (f700e6d)
  • ProgressIndicator
    • Fix indeterminate progress indicator not working on API 22 (61cbb8c)
  • BottomNavigationView
    • Updated active indicator to use new motion system. (1995438)
    • Update 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)
  • MaterialDatePicker
    • Migrate to new shape system (91a2550)
    • Hide the keyboard when switching to calendar mode (5d6678c)
  • FloatingActionButton
    • Migrated "Large" styles to use new shape system. (30bb583)
    • Added "Small" styles with new shape system. (acc7569)
    • Updated FAB to use new motion attributes. (934985e)
  • BottomAppBar
    • Add a callback for whenever bottom view hides/unhides through scrolling (21f9b0f)
    • Updated FAB alignment mode slide animation to use new motion attributes. (722756e)
  • Tokens
    • U...
Read more