having access to material even without material dependency android code example
Example 1: android material design gradle dependency
implementation 'com.google.android.material:material:1.1.0'
Example 2: material design android dependency androidx
dependencies {
// ...
implementation 'com.google.android.material:material:<version>'
// ...
}