When I create a new project with API14 as minimum, then there is no values-21
or values-22
folder in my project. I don't see any styles.XML anywhere, so how should I put in XML code for just Lollipop?
I use Android Studio 1.0.1, and I have SDK 21, 21.1.1, 24.0.2 installed.
Updated: Since API 22
has been released. API 23
is the same idea.
Right click the RES
folder
Then type values-v22
as the directory name and choose xml as the resource type.
If you do NOT see the values-v22
show up, click
the Project pulldown at the top of the screen like so. e.g. Change from Android to Project
Now right click styles.xml
in the values folder
and choose copy
Now right click the values-v22
folder and click paste.
You should see this popup
Click ok
At this point you should be good to go.