

You are able to set the shape family and value individually and arbitrarily on each edge but there are set intervals and baseline values.

Rounded returns a rectangle with fully rounded edges, while Cut returns a hexagonal shape. Where a “none” style always results in a rectangular shape, the resulting shape for full depends on the shape family. A component’s shape is defined by two properties: its Shape family, either rounded or cut, and its value, usually described in dp. Material 3 components have been updated to apply one of the seven styles ranging from None to Full. In addition to providing a custom MaterialShapeDrawable, there is also a means to more simply customize shape theming using rounded or cut corners. Shape ThemingĪ component’s shape is one way to express your brand. Much of the new component’s core API aligns with the obsolete SwitchMaterial class so to get started, you can simply replace the class references.įor more information on how the obsolete component stacks against the new implementation, check the documentation on GitHub. The “off” state has a smaller thumb with less contrast. It now differentiates between the on and off states more by making the “on” thumb larger and able to contain an icon in addition to an on state color. The MaterialSwitch class replaces the previous SwitchMaterial class. The Switch component has undergone a visual refresh that increases contrast and accessibility. There are a couple standout updates we’d like to highlight. As always, our release notes contain the full details of what has been updated. This is a fairly large jump in terms of the Gradle plugin version, so make sure to secure changes in your build files first before moving on to UI code. Android Studio Chipmunk, version 2021.2.1, and.Android Gradle Plugin (AGP) 7.3.3, previously 4.0.0.MDC 1.7.0 has new minimum version requirements: The latest releases of Material Design Components (MDC) - 1.7.0 brings updates to Material You styling, accessibility and size coherence and new minimum version requirements Posted by James Williams, Developer Relations Engineer
