material-components-android README

The project's README from github.com/material-components/material-components-android. As one markdown file: README.md.

Chat

[MAINTENANCE MODE] Material Components for Android

At Google I/O 2026, Material Android announced that we're "all-in" on Compose, alongside the official Android Compose-first announcement, marking a new chapter in Android development.

This means that the Views-based Material Components for Android library (MDC-Android) is now in maintenance mode.

There are no more planned feature releases for Views, so all projects using the Views library should begin or continue migrating to Compose to get the latest Material Design and Android platform updates.

For more information, see the following resources:

Getting Started

For information on how to get started with Material Components for Android, take a look at our Getting Started guide.

Submitting Bugs or Feature Requests

For usage questions: ask on Stack Overflow.

Bugs or feature requests should be submitted at our GitHub Issues section.

Note: If your issue or feature request is for Material Jetpack Compose, please file it at the Compose Issue Tracker instead.

Documentation

material-components-android (material-components/material-components-android)

Searching Database…

这是干什么的?Material Components for Android(MDC-Android)是 Google 推出的一个库,提供模块化、可自定义的 Material Design 界面组件,用于开发 Android 应用。
它是基于经典的 Android View 体系,还是基于 Jetpack Compose?它基于 View——也就是使用 XML 布局的经典 Android 界面方式——而不是 Jetpack Compose。不过 Google 现在主推的是 Compose。
我怎么把它加到我的 Android 应用里?按照 README 顶部的入门指南操作即可,它会一步步带你把 Material Components 依赖添加到你的项目里。
它能单独运行,还是必须放在应用里面?它是一个界面库,不是独立应用:这些组件作为你自己 Android 应用项目的依赖引入,并在应用的界面中显示。
这个仓库被标记为维护模式,这对我的项目意味着什么?这个 View 库不会再发布新功能版本了。Google 已全面转向 Compose,README 建议仍在使用 View 的项目开始或继续迁移到 Compose,以获得最新的 Material Design 更新。
Google 为什么把 MDC-Android 置于维护模式?在 Google I/O 2026 上,Material Android 宣布全面转向 Compose,这与 Android 官方公布的 Compose 优先策略相呼应——因此新的 Material Design 工作都会在 Compose 中进行,而不是在这个 View 库里。
在写代码之前,我可以在哪里浏览和预览这些组件?Useful Links 部分提供了 All Components 页面、一个目录应用(Catalog App)以及外部类文档,方便你查看完整的组件集合。
如果我迁移的话,Compose 这边对应的替代品是什么?是 Compose Material 3——README 中链接了它的入门指南、版本发布页面和 API 参考文档,另外还有一份把 XML View 迁移到 Jetpack Compose 的分步指南。
我能通过快照版本测试尚未发布的改动吗?可以——Useful Links 部分包含一份“使用快照版本”(Using Snapshot Version)指南,另外还有一份“从源码构建”(Building From Source)文档,教你自行编译这个库。
Size
179.2 MB
Stars
17.4K
Age
9y
Commits · 90 Days