REAL O G
REAL O G

Reputation: 685

Material Design Setup

I'm trying to set up Material Design so that I can use it for Android 5.0 and fall back to v7-appcompat themes for older devices. Everything that I've read says that when I create the project, there should be two folders, "res/values" and "res/values-v21" or at least in the android view there should be two syles.xml files. However, all I can ever get is just "res/values" and one styles.xml file. What am I doing wrong here? Shouldn't android studio create the folders and .xml files? Any help is appreciated.

Upvotes: 0

Views: 524

Answers (2)

Vijay Vankhede
Vijay Vankhede

Reputation: 3058

Well you can create new directory manually as stated by michal.z . But if you are tiered by making directory every time while creating new project. You can define your own custom template.

Android Studio's templates are based on the Android ADT Template system, which is in turn based on FreeMarker.

To create your own custom template just follow this post

You need to edit template.xml file.

Upvotes: 2

michal.z
michal.z

Reputation: 2075

You have to create this directory manually. In Android Studio right-click res directory of your project, choose New -> Directory from menu. Enter the name of directory 'values-v21'. Add style.xml file to newly created directory in similar way (New -> File from menu). That's all :)

Upvotes: 2

Related Questions