In Android Studio, I imported a project which did not include styles.xml (v21)
.
So I created a styles-v21.xml
file in the values
direc
You should create styles.xml for version 21 in values-v21 folder and android studio automatically add it as styles.xml(v21)
correction to styles-v21.xml.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent=""AppTheme.Base"">
</style>
</resources>
You have to create a value folder with values-v21 caption. and create style.xml file in this with the same name as values folder like styles.xml. Now rebuild your project.
Right click on res folder, choose New --> Android resource file, set the same name for the new file "styles", in Available qualifiers: choose the last item "Version" and finally set "Platform API level" 21.
By default, Android Studio doesn't create styles.xml (v21). What you need to do is create a folder structure like the following:
And this is what you will get in Android Studio:
Then you can defined different AppTheme
for different API levels.