Skip to content

Releases: material-components/material-components-android

1.8.0-alpha01

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

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

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

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

1.7.0-alpha02...1.7.0-alpha03

1.6.1

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

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
    • Upgrade resources to v0.95. (c3406dc)
    • Regenerated token resources with type. (a1e8305)
  • Documentation
    • Small fix on divider doc. (13e27a8)
    • Update doc to mention liftOnScrollTargetViewId attr (e523260)
    • Added a note for shape theming. (e74baff)
  • Catalog
    • Surround TransitionFragment platform demos with proper sdk int check to fix lint error (265cb86)
    • Apply M3 style to bottom sheet in bottom app bar demo. (d25d18d)
    • Fix DateValidatorWeekdays description (5549e53)
    • Fix DatePicker when the "Last 2 weeks" option is selected (2fa78da)
    • Fixed Button demo to use the correct style for Icon Only Button. (83f7a7a)
    • Fix the demo image of the DatePicker component (b2c3dd6)
    • Fix timeFormat toggle in TimePickerMainDemoFragment (db16763)
  • Other
    • Remove unit test resources from main library source set and refactor the way test resources are configured/accessed (9cd794c)
    • Add runtime dependencies to Javadocs classpath to fix failure (188ea55)
    • Added constructor with layout ID and update appCompat version (4d4f3cc)
    • Migrate M3 NavigationView style to new shape system. (cfeb31a)
    • Update date and time picker translation strings (8c775cb)
    • Workaround the issue that Context.obtainStyledAttributes() doesn't handle @macro properly (3fa48d4)
    • Fix container transform easing mapping. (5b50bf1)
    • Update shared axis, fade through, and fade to use new easing and duration system. (e151b7a)
    • Update M3 style to use new shapeAppearanceCornerExtraLarge attr (391d2b2)
    • Use regular strings instead of @android:string/* which can have translation issues (7109aa4)
    • Update library source and target compatibility to Java 8 and add lambda + method reference usage (b62b9a5)
    • Update string translations (431e291)
    • Added theme attributes and styles for new shape appearances. (6217aa8)

Full list of changes

1.7.0-alpha01...1.7.0-alpha02

1.6.0

Compare
Choose a tag to compare

What's new since 1.5.0

Other highlights

  • Material 3
    • Hide shadows on all M3 Toolbar styles, not just Surface style (b49284e)
    • Migrate action bar popup themes to M3 (2ae3ca4)
    • Update M3 card elevation according to the spec (bb23e2d)
    • Add missing attributes to M3 button styles (3c9b452)
    • Update M3 navigation rail text appearances (6b57c52)
    • Fix M3 date picker styles (fba1a34)
    • Change checkedIconGravity values to enum (bc56d5b)
  • Badging
    • Prevent multiple badges being attached to a menu item at the same time (b3db1cc)
    • Refactored Badge state managing logic (bbbeacd)
    • Added support for different locale on badges (b8f2dd5)
  • BottomNavigationView
    • Added supported NavigationBarView#LabelVisibilityMode alternative to deprecated BottomNavigationView#LabelVisibilityMode. (1222268)
    • Removed font scaling from NavigationBarView item labels. (d66676f)
    • Set backgroundTint explicitly to @null in M3 bottom navigation styles (adbcf8c)
  • BottomSheet
    • Fix bottom sheets in EXPANDED state when the expanded height is the same as the collapsed height (493243e)
    • Simplify state transition logic (04c483c)
    • Fix activity leak when setting states on destroying activities (43114c4)
    • Update edge-to-edge paddings when bottom sheet is laid out (19af0ac)
  • Chip
    • Refactored chip group selection logic to a standalone class (f3c6430)
    • Added missing attributes to M3 chip styles (cc18f3f)
    • Update M3 chip styles with spec (8ed0ac9)
  • CollapsingToolbarLayout
    • Fixed shadow issues when transition between expanded and collapsed states. (86e8b00)
    • Constrain adjusted font weight to acceptable values (5dce006)
  • Color
    • Fix resources being re-harmonized when wrapContextIfAvailable() is used. (b402cb3)
    • Added ColorGrid classes for color harmonization demo. (fcc1091)
    • Add kyocera to dynamic colors allowlist and reorganized based on alphabetical order. (1dad5f6)
    • Fix HarmonizedColorsOptions.Builder#setColorAttributes is marked as nullable (44054aa)
    • Added support for color resources harmonization in XML (869d943)
    • Refactor DynamicColors overloading methods and added DynamicColorsOptions class to support color harmonization. (bdbf052)
    • Update DynamicColors to use peekDecorView() instead of getDecorView() when applying dynamic color theme overlay (56ed070)
    • Update DynamicColors util to applyStyle() on window decorView theme as well to fix potential ContextMenu issue (f6c8fa5)
    • Update DynamicColors util to use activity.getTheme().applyStyle() instead of activity.setTheme() to workaround Force Dark issue (b84f35f)
    • Avoid Short#compare usage in ColorResourcesTableCreator.java since it requires API level 19 (48741b4)
    • Add Resource Table format for XML color Harmonization. (822a5b2)
  • Dialog
    • Fixed crashes when colorControlHighlight is a CSL (1c5c054)
    • Added date and time picker themes to M3 dialog themes (8342f90)
    • Fixed dialog icon color tint (246b340)
    • Fixed dialog paddings (672e744)
    • Start-align message text with centered styles (9980596)
  • Divider
    • Added attribute in MaterialDividerItemDecoration to remove item decoration from last recycler view item. (9416b2c)
  • MaterialDatePicker
    • Fixed edge-to-edge mode being applied multiple times (e1ee959)
    • Always go edge-to-edge in fullscreen mode (be6050a)
    • Start align edit icon in landscape (94cd532)
    • Fixed wrong month title with certain months (62e8993)
    • Added methods to use custom text for positive and negative button (b2fbace)
  • MaterialButton
    • Fix icon position not being updated when size is not changed (b0f3700)
    • Support icon gravity with text alignments other than centered (6c41f07)
  • MaterialCardView
    • Fixed crash on Pre-Q devices when checked icon is null (b4cab87)
    • Fixed checked icon gravity issues (283715d)
    • Added option to set the checkedIcon gravity (250d56d)
  • MaterialShapeDrawable
  • NavigationRail
    • Added support for opting in/out of the NavigationRail automatically adding system top and bottom window insets. (c66633b)
  • Slider
    • Added LABEL_VISIBLE to label behavior. (ca8594d)
    • Add support for custom thumb drawables (17da000)
  • Snackbar
    • Fixed margins are added multiple times when show() is called (2bfc7ba)
    • Fixed the issue that setting margins programmatically does not work (d5856fd)
    • Support setting max lines programmatically (4c7be52)
    • Enforce vertical layout when action text is too long (ff97a68)
    • Fixed NPE on Android 8 & 9 (35d9da8)
    • Fixed maxWidth is not applied on Snackbar (6a3ea94)
  • Tabs
    • Tabs with padding in fixed mode shouldn't scroll (9c2df28)
    • Added fade indicator animation mode. (a295de9)
    • Fix NPE caused by set a position less than 0 (823c34a)
  • TextInputLayout
    • Fixed regression bug of prefix spacing being shown and making expanded label be in the wrong position when text field is not focused. (4d78879)
    • Extracted start components from TextInputLayout (9a46af2)
    • Split icon tinting logic to a helper class (9789f2e)
    • Provided set simple items API with default item layout for MaterialAutoCompleteTextView (85ed993)
    • Added support for minEms and maxEms (7d46b95)
    • Applied edit text's letter spacing to expanded hints (88eb089)
    • Text field should comply with system level bold (e8bde75)
    • Fixed crashes when text field size is too large (cf5df22)
    • Fixed getBoxCornerRadiusBottomEnd and getBoxCornerRadiusBottomStart returning wrong values. (9d2f864)
  • TopAppBar
    • Fixed app:expanded=false not working (2f3110f)
    • Fixed centering logic when title and subtitle are the same (f69e3a0)
    • Support scaleType and adjustViewBounds for logo (b01051b)
    • Make title and subtitle match ActionBar's (0f2b537)
    • Save and restore scroll state during scroll range recalculation (698cf9b)
    • Fixed top app bar snapping issue (acb7958)
    • Fixed expanded title margin not applied (89d80d0)
    • Correctly set letter spacing when expanding titles (44d4c3e)
    • Fixed text alignment of multi-line title in collapsing toolbar (e6db8a4)
    • Fixed snap issue with transparent status bar (b935604)

Dependency Updates

Dependency Previous version New version
androidx.fragment 1.0.0 1.2.5

Full list of changes

1.5.0...1.6.0

Full list of release notes

1.6.0-rc01

Compare
Choose a tag to compare

Dependency Updates

  • No dependency updates

Library Updates

  • A11y
    • Make picker header focusable to improve TalkBack response (9dd0952)
    • Attach/detach badge contentDescription when using menuItem. (bed5c59)
    • Make label important for accessibility (ebc9d19)
  • TextInputLayout
    • Fixed regression bug of prefix spacing being shown and making expanded label be in the wrong position when text field is not focused. (4d78879)
  • Material 3
    • Add additional condition to check dynamic color supported devices (51093e1)
  • MaterialDatePicker
    • Fix edge-to-edge mode being applied multiple times (e1ee959)
  • TopAppBar
    • Fix app:expanded=false not working (2f3110f)
  • Color
    • Fix HarmonizedColorsOptions.Builder#setColorAttributes is marked as nullable (44054aa)
  • Other
    • Changed gradle so that tests run in parallel, preventing OutOfMemory errors (a8256c2)
    • Make sure targetSdkVersion is applied to all Gradle sub projects (9be224b)
    • Update Robolectric to 4.7.3 (aeed987)
    • Update library version to 1.6.0-rc01 (9e758af)

Full list of changes

1.6.0-beta01...1.6.0-rc01

1.7.0-alpha01

Compare
Choose a tag to compare

Dependency Updates

  • No dependency updates

Library Updates

  • TextInputLayout

    • Centralize EndIconDelegate listener logic (26308d9)
    • Fixed regression bug of prefix spacing being shown and making expanded label be in the wrong position when text field is not focused. (784f901)
    • Create EndIconDelegates in an on-demand fashion (7c160c8)
    • Extract end components from TextInputLayout (6cdf7b5)
  • ExposedDropdownMenu

    • Updated the elevation of the popup to match M3 specs. Also fixed bug where elevation wasn't being read via xml. (2c335b5)
    • Removed update dropdown background call from setInputType as it indirectly calls setRawInputType (f915ffd)
    • Update dropdown background when setRawInputType is called. (f31414a)
    • Fixed android:popupBackground not working in xml/styles for the AutoCompleteTextView. (df3a708)
    • Update background when setInputType is called so that ripple is or isn't present properly. (1c02b62)
  • DatePicker

    • Fix edge-to-edge mode being applied multiple times (c6a654c)
    • expand the touch area of a month's days (ffb64c1)
    • Fix for issue that causes the month view not to expand to show all days in a month. (a1ec73b)
  • RadioButton

  • Tabs

    • tab layout should not ignore focused state ripple color (5a0541f)
  • Slider

    • Make slider's height adjustable with track height or thumb radius (dc0d8a9)
  • Button

    • Fix icon textStart/End alignment with multiline text (b6b895a)
    • Fix icon position with multiline text (19d0500)
  • TopAppBar

    • Fix app:expanded=false not working (05be1b9)
  • TextView

    • Deprecated 4 arg constructor. (df273cd)
  • NavigationRail

    • Fix bottom padding being applied to top bug (5173944)
  • Accessibility

    • Added more a11y tests for text fields and exposed dropdown menu. Also updated robolectric version (863d6aa)
    • Make picker header focusable to improve TalkBack response (c23daec)
    • Attach/detach badge contentDescription when using menuItem. (ee49c5a)
    • Make label important for accessibility (0ba0d65)
    • Fixed bug where setting the AutoCompleteTextView's input type to TYPE_NULL in code would make it unusable in a11y touch mode, as it was still seen as editable for a11y. (01021a7)
    • Update accessibility className used for hour/minute Chips (a51d1dc)
    • Fixed text field's focused rect wrong behavior when using a11y magnification. (dce4419)
  • Transitions / Motion

    • Open MotionUtils and update resolveThemeInterpolator to load both new and legacy easing attributes. (894edb6)
    • Add new motion system duration theming (0ab2068)
    • Add motion easing xml interpolators and theme attributes. (0d91f4a)
  • Color

    • Add additional condition to check dynamic color supported devices (6fdc114)
    • Refactored MaterialColorSpec to take @ColorRes or @ColorInt for the demo. (f43995f)
    • Fix MaterialColors cannot handle CSL issue (2544c1f)
    • Update link for m3 Color design guidelines (2a7f14a)
  • Catalog

    • Make card selection accessible (a49fa6a)
    • continuous slider demo should use a single switch (dbfcd35)
    • consolidate slider switches to a single switch (315c496)
  • Documentation

    • Added a note for shape theming. (e74baff)
    • Add status bar / edge-to-edge section to Top App Bar dev doc (b8e1f97)
    • Correct style name used in FAB dev doc (d26cb45)
  • Tokens

  • Other

    • Changed gradle so that tests run in parallel, preventing OutOfMemory errors (e9b04a6)
    • Make sure targetSdkVersion is applied to all Gradle sub projects (06348a0)
    • Update Robolectric to 4.7.3 (139f35c)

Full list of changes

1.6.0-beta01...1.7.0-alpha01

1.6.0-beta01

Compare
Choose a tag to compare

Dependency Updates

  • No dependency updates

Library Updates

  • Color
    • Deprecated previous apply...() APIs and add overload for activity apply method with no options (8363cde)
    • Iterated on HarmonizedColors and DynamicColors feedback (b70bbc2)
    • Updated dark tone values for ColorRoles. (7b51353)
    • Updated getters/setters naming in the HarmonizedColorsOptions (bfb6086)
    • Fixed formatting and typos for resources harmonization. (d24b3a9)
    • Updated Color dev doc and added new section for Apply dynamic colors using DynamicColorsOptions and Resource Harmonization. (a81a658)
  • NavigationRail
    • Updated documentation to include window inset attributes. (3b2b56e)
    • Fixed bottom padding being applied incorrectly (5173944)
  • TextInputLayout
    • Added class documentation to use TextInputLayout's context to construct the child TextInputEditText. (1085583)
    • Fixed end icon focus in a11y mode when a11y mode is turned on/off after views have been attached. Also added a11y tests. (b9a21f0)
    • Fixed text field's focused rect wrong behavior when using a11y magnification. (a8d8e70)
  • Tokens
    • Upgraded to v0.79. (ccfc0ee)
    • Migrated deprecated motion token generated resources. (91c2530)
    • Removed deprecated font family resource. (6a4fa0b)
    • Added missing palette token generated resources. (e7a691e)
    • Added new shape appearance styles. (a5b78e6)
    • Added lineHeight attr into TextAppearance. (b4d4450)
  • TimePicker
    • Updated accessibility className used for hour/minute Chips (981129f)
    • Updated to give more context on hour/minute selection (380778f)
    • Fixed TalkBack from announcing unavailable action (1b14715)
    • Fixed TalkBack announcing wrong selection between hour/minute (47781d5)
    • Fixed wrong clock item selection (9cdf4c9)
  • Tabs
    • Fixed tabs with padding in fixed mode from scrolling (9c2df28)
  • Slider
    • Added LABEL_VISIBLE to label behavior and added a demo fragment in catalog. (ca8594d)
    • Refined javadocs of thumb radius setters (78b532c)
  • DatePicker
    • Always go edge-to-edge in fullscreen mode (be6050a)
  • Catalog
    • Fixed status bar and action mode glitches in ActionBar demo (ebfb3db)
    • Removed the overflow menu from the bottom app bar demo (52daa6f)
  • Material 3
    • Added additional condition to check dynamic color supported devices (69121c8)
  • NavigationView
    • Fixed navigation view item ripple (cfc307e)
  • TopAppBar
    • Fixed centering logic when title and subtitle are the same (f69e3a0)
  • Other
    • Updated bug report template with more instructions for minimal sample app (a147bca)

Full list of changes

1.6.0-alpha03...1.6.0-beta01