I am trying to use Cardview but it somehow doesnt show the background, its always tranparent. I tried to change the background with cardBackgroundColor but it doesnt work, it stays transparent. How can i change the background? enter image description here
Asked
Active
Viewed 86 times
0
-
4write a code in text, not in the image, it'll be easier to help You – iknow Jun 18 '20 at 21:50
-
You probably don't have `xmlns:app="http://schemas.android.com/apk/res-auto"` in the root xml tag of the layout – jeprubio Jun 18 '20 at 21:59
1 Answers
0
I suspect it isnt picking up cardBackgroundColor
because you dont have the app
namespace. Ensure you have the app
namespace in the top container element of your layout
xmlns:app="http://schemas.android.com/apk/res-auto"

Jaime
- 378
- 2
- 7