【发布时间】:2020-06-18 21:48:58
【问题描述】:
我正在尝试使用 Cardview,但它不显示背景,它总是透明的。 我尝试使用 cardBackgroundColor 更改背景,但它不起作用,它保持透明。 我怎样才能改变背景? enter image description here
【问题讨论】:
-
用文字写代码,不要用图片写代码,对你有帮助会更容易
-
您可能在布局的根 xml 标记中没有
xmlns:app="http://schemas.android.com/apk/res-auto"
标签: android android-studio android-cardview