Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android theme set to black, but it is white in Android 4.1

I have tried both Theme.DeviceDefault and Theme.Black in my styles.xml, and both make my 2.1 emulator become black correctly, but on the 4.1 emulator it stays white...am I doing something wrong?

<resources>

    <style name="AppTheme" parent="android:Theme.Black" />

</resources>

PS: I presume the drop-down for "Theme" at the top of the Graphical Layout is just showing me what it would look like, it's not some kind of setting that's going somewhere (for the app)?

like image 552
noelicus Avatar asked Dec 15 '22 19:12

noelicus


1 Answers

The Android system always chooses the most special values folder that fits best to your device.

As example if you have a folder values and another folder values-v14 the Android system takes resources from the latter if the device is v14 or newer.

Please refer to the Android documentation for more information.

like image 139
Matt Handy Avatar answered Dec 30 '22 08:12

Matt Handy