Material Components for Android Material Components for Android by building a simple app with core components in Java
Learn how to use Material for structure and layout on Android in Java Discover how Material Components for Android make it easy to differentiate your product and express your brand through design in Java
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
Depend on our library Material Components for Android is available through Google's Maven Repository. To use it:
Open the build.gradle file for your application.
Make sure that the repositories section includes Google's Maven Repository google(). For example:
allprojects {
repositories {
google()
jcenter()
}
}
Add the library to the dependencies section:
dependencies {
// ...
implementation 'com.google.android.material:material:<version>'
// ...
}
Visit Google's Maven Repository or MVN Repository to find the latest version of the library.