google material 库和设计支持库的区别
Difference between google material library and design support library
我在 android 上尝试新的 material 设计组件,例如底部应用栏,但我发现每个 MDC 都存在于 android 设计支持库中,但也存在于另一个名为 com.google.android.material
的库,代码几乎相同(在设计库中,代码的记录与另一个库不同),那么这两个库有什么区别?
取决于 this post com.google.android.material
是旧支持库的替代品。
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.
那里有更多详细信息:
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.
旧神器:com.android.support:design
新神器:com.google.android.material:material:1.0.0-rc01
我在 android 上尝试新的 material 设计组件,例如底部应用栏,但我发现每个 MDC 都存在于 android 设计支持库中,但也存在于另一个名为 com.google.android.material
的库,代码几乎相同(在设计库中,代码的记录与另一个库不同),那么这两个库有什么区别?
取决于 this post com.google.android.material
是旧支持库的替代品。
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.
那里有更多详细信息:
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.
旧神器:com.android.support:design
新神器:com.google.android.material:material:1.0.0-rc01