I'm just starting to get into material design for android and I ran into small problem - material design guide says to create separate values-v21 folder and create my custom theme there, while all older versions will fall back to default values folder. By the time tutorial was released 21 Android version was the latest, so do I need separate folders for each subsequent android versions (22,23..) now and just copy same theme? Or will all later version will fall back to v21 theme if there's no newer version values folder?
Asked
Active
Viewed 547 times
1 Answers
2
No. Only create a /values/
and a /values-v21/
folder for your styles. /values/
will be used by Android 4 and below, while /values-v21/
will be used by Android 5 and above.
If both folders exist with proper Styles.xml
files, then Android 5 and above devices will use values-v21
and Android 4 and below devices will use values

hvaughan3
- 10,955
- 5
- 56
- 76
-
This is a duplicate questions you should't answer it. Instead you should mark it as duplicate and point to the atual answer in stackoverflow. – jzeferino Jul 07 '16 at 12:48
-
1@jzeferino I certainly would have done that if I would have known it was a duplicate. You marked it as such after I had already answered it. – hvaughan3 Jul 07 '16 at 13:05
-
1However this question focuses on newer versions, than the link you provided @jzeferino . This question was more relevant to answering my question, where your link would still leave me unsure. – cfl Jan 06 '17 at 06:29
-
1Answer is wrong. `values-v21` is used by Android 5 and *above*, not *below*. – 6rchid Mar 24 '23 at 05:54
-
@6rchid Fixed the versions and made it more clear what i was trying to say. – hvaughan3 Mar 25 '23 at 03:02