Reputation: 974
I want to have colors for specific card states. I want to be able to reset it to its default.
Where can I find the default material colors from Android? Especally of the Android CardView.
Thanks for help.
Edit:
The Cards have an backgroundcolor (not the images) which is not white. Which color is this? Or is there any method to reset the Backgroundcolor of View-Elements?
Sry for bad english.
Upvotes: 20
Views: 21114
Reputation: 974
Finally, I found the solution: #fafafa
It's the Background colour that Google used on the website hakkikonu posted.
Edit:
Maybe it changed over time. Updated answer (thanks to arts777)
Upvotes: 25
Reputation: 619
If you're worried that this color will change over time and you'd like to be up to date if and when Google changes it, you can use ?android:colorBackground
.
As of July 2017, it is still #FAFAFA
Upvotes: 5
Reputation: 6519
https://material.google.com/style/color.html#color-themes link describes all of your question. Also you can see more notes about material design.
Upvotes: 11