What’s new-Material Design 1.7.0 🎨

Header

In this article, we will examine the changes introduced with Material Design 1.7.0.

Minimum Requirements

  • Android Gradle Plugin(AGP) version ≥ 7.2.0
  • Gradle 7.3.3
  • Java 8
  • compileSdkVersion & targetSdkVersion ≥ 32

New MaterialSwitch component

  • It will replace the SwitchMaterial class

Compose sample code

XML sample code

New Checkbox component

MaterialCheckBox UI sample

CheckBox now supports indeterminate and ⛔️ error state

Compose sample code

XML sample code

  • For accessiblity, we can provide an errorAccessibilityLabel.
// XML
app:errorAccessibilityLabel
="Error label for accessible goes here"
// Kotlin code
setErrorAccessibilityLabel
("Error label for accessible goes here)

There are many other changes please check the release notes 🗒 here 👇

  • Redesigned BottomAppBar
  • New Shape system
  • New Icon Button support, etc.

Demo ✨✨

Demo new components

😊😊 👏👏👏👏 HAPPY CODING 👏👏👏👏 😊😊

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nav Singh 🇨🇦

Google Developer Expert for Android | Mobile Software Engineer at Manulife | GDG Organizer at GDG Montreal