20

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.

Edric
  • 24,639
  • 13
  • 81
  • 91
R00st3r
  • 954
  • 1
  • 10
  • 31

3 Answers3

25

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)

Thecave3
  • 762
  • 12
  • 27
R00st3r
  • 954
  • 1
  • 10
  • 31
  • 1
    Hm, but this guide https://material.google.com/style/color.html#color-themes says that default BG color is #fafafa – artem May 09 '17 at 03:44
11

https://material.google.com/style/color.html#color-themes link describes all of your question. Also you can see more notes about material design.

tochkov
  • 2,917
  • 2
  • 15
  • 21
hakki
  • 6,181
  • 6
  • 62
  • 106
  • 3
    Maybe i´m stupid, but i can´t find the default cardview background color – R00st3r Dec 31 '14 at 15:17
  • 5
    @R00st3r It states that the card (and dialog) background color should be #FFFFFF for light themes and #424242 for dark themes. It's at the bottom under "Themes". – Jabari Jan 23 '16 at 08:22
4

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

Peter O.
  • 32,158
  • 14
  • 82
  • 96
or_dvir
  • 479
  • 1
  • 7
  • 22