Question: how to change the background color of cardview in android?
Answer: To set the corner radius in your layouts, use the card_view:cardCornerRadius attribute. To set the corner radius in your code, use the CardView. ...  To set the background color of a card, use the card_view:cardBackgroundColor attribute.