Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android what is the resource name of the default window background color of the current scheme/style

Tags:

android

I tried to find it, maybe it's too obvious :) but how is the resource named of the "default window background color" (that pale white in holo light for instance) to be used in xml design?

    android:background="<help me out here>"

Of course, just not giving the background attribute at all will reset, I know that, but on some shapes we need this background color as fill color, so I need to know the resource name of it. Thanks in advance!

like image 498
Grisgram Avatar asked Sep 13 '25 19:09

Grisgram


1 Answers

Found it. It's @android:color/background_light respectively @android:color/background_dark depending on scheme.

like image 131
Grisgram Avatar answered Sep 16 '25 10:09

Grisgram