15
score
10.7K
views
yes
status
CC BY-SA 3.0
CardView setCardBackgroundColor won't work
Change to You are using the value from R.color instead of the value you set in your XML.
Technical answers from my Stack Overflow history, with source links and licenses.
Showing 1 of 1 answer tagged android-cardview
Exported May 9, 2026
Change to You are using the value from R.color instead of the value you set in your XML.