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
android android-5.0-lollipop android-resources android-theme


source to share


No one has answered this question yet

Check out similar questions:

28
Styles and themes for values, v11-values ​​and v14-values ​​of folders
8
Can't override switchStyle and NumberPicker style in Android
4
Highlighting a selector that can be used on pre-Lollipop
2
where to place the .xml theme?
2
setting target sdk version not working
1
Multilingual and multi-theme at the same time
1
Subject theme does not apply correctly on devices under 21
0
Theme.Holo in styles.xml with level <11 throws validation error in Eclipse ADT
0
not allowed to add android: windowTranslucentStatusbar to style file
0
Android device does not load project theme



All Articles
Loading...
X
Show
Funny
Dev
Pics