Reputation: 449
I was trying the new material design components on android such as the bottom app bar but i discovered that every MDC was existing in the android design support library but also in another library called com.google.android.material
and the code was pratically the same (in the design library the code was documented unlike the other), so what is the difference between these two library?
Upvotes: 7
Views: 4361
Reputation: 21
More detail from there:
https://developer.android.google.cn/jetpack/androidx/migrate#migrate
AndroidX maps the original support library API packages into the androidx namespace. Only the package and Maven artifact names changed; class, method, and field names did not change.
Old artifact: com.android.support:design
New artifact: com.google.android.material:material:1.0.0-rc01
Upvotes: 2
Reputation: 6602
Depends on this post com.google.android.material
is a replacement for old support library.
Additionally, following the introduction in 28.0.0-alpha1 of Material Components for Android as a drop-in replacement for Design Library, we have refactored the design package to reflect its new direction.
Upvotes: 9