我想添加扩展浮动操作按钮到我的android项目应用程序,但得到了一个错误,说未能找到@attr/TextAppearanceButton在当前主题。我已经实现了材料依赖性在build.grade模块。我是新的Android开发。请我需要帮助🙏🏾。
@attr/TextAppearanceButton
shyt4zoc1#
将您的styles.xml更改为如下所示
<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
3yhwsihp2#
您可以使用**?attr/而不是@attr/来引用它们。例如-?attr/colorPrimary**。
2条答案
按热度按时间shyt4zoc1#
将您的styles.xml更改为如下所示
3yhwsihp2#
您可以使用**?attr/而不是@attr/来引用它们。例如-?attr/colorPrimary**。