【发布时间】:2019-03-11 06:27:41
【问题描述】:
按照getting-started 的说明更新我们的Android 应用以继承Theme.MaterialComponents.Light 后,纯文本按钮无法正确呈现。
在注释中,文档状态:
Note: Using a Material Components theme enables a custom view inflater
which replaces default components with their Material counterparts.
Currently, this only replaces <Button> XML components with
<MaterialButton>.
有没有办法禁用自定义视图充气或修复按钮问题?
【问题讨论】:
-
“不正确”是什么意思?
-
如果你看上面的例子,这些按钮应该看起来像文本按钮
标签: java android material-design android-theme material-components