Api 21 device occupying theme from wrong folder

Am I wrong saying that if there is a "values" folder and a "values-v19" folder then the lollipop device will automatically go to the values-v19 folder? It doesn't work for me, I have the following (along with several other settings) \ themes.xml values:

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

      

And another 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 takes color from \ themes.xml values, is this the correct behavior?

Edit: So the docs seem to agree:

Now use this theme [values-v11] as you do and your app 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!

+3


source to share





All Articles