R00st3r
R00st3r

Reputation: 974

Android Material default colors

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?

Sample of Cards

Sry for bad english.

Upvotes: 20

Views: 21114

Answers (3)

R00st3r
R00st3r

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

or_dvir
or_dvir

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

hakki
hakki

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

Related Questions