Api 21 device taking theme from wrong folder

111 views Asked by At

Am I not correct in saying if there is a 'values' folder and a 'values-v19' folder, then a lollipop device will go to the values-v19 folder automatically? This is not happening for me, I have the following (along with a few other settings) in values\themes.xml:

<style name="Theme.MyTheme" parent="Theme.AppCompat.NoActionBar">
    <item name="android:windowBackground">@color/primary</item>
</style>

And a different color in values-v19\themes.xml:

<style name="Theme.MyTheme" parent="Theme.AppCompat.NoActionBar">
    <item name="android:windowBackground">@color/accent</item>
</style>

My 5.0.1 Galaxy S4 is taking the color from values\themes.xml , is this the correct behaviour?

Edit: So the docs seem to agree:

Now use this [values-v11] theme like you would any other, and your application will automatically switch to the holographic theme if running on Android 3.0 or higher.

There must be something preventing my device from accessing the values-19 folder but I have no idea what!

0

There are 0 answers