


We saw this above with AppCompatButton and MaterialButton. While opting out is possible, we recommend adopting the new MDC styles.įor components that were not part of the Design Support Library, in some cases there is now a Material version of the class. In most cases there are new Widget.MaterialComponents.* styles that replace Widget.Design.* styles, along with new attributes that enable additional features. Legacy Design Support Library text field Prefer MDC styles and widgetsĪs we’ve seen above, widgets previously in the Design Support Library have since become part of MDC. We’re now ready to bump our MDC dependency version to 1.1.0: Accessibility improvements, bug fixes, and more.New widgets like the extended FAB, date picker, badges, and toggle buttons.Android 10 gesture navigation insets in widgets.Full Material Theming support for color, typography, and shape.Updating to MDC 1.1.0Ī lot has changed in MDC between 1.0.0 and 1.1.0! The new features include: This is covered in more detail, along with a workaround, in the “Shape” section below. Unlike AppCompatButton, MaterialButton did not support custom backgrounds until release 1.2.0-alpha06 of MDC-Android. Having migrated to a Theme.MaterialComponents.* theme, this has changed to which has an updated default style. Our example app was previously replacing the framework with because we had a Theme.AppCompat.* theme. The other widgets above were added in subsequent versions of the library. Note: In MDC 1.0.0 only Button s were replaced.
