1

I'm developing an app that is compatible with froyo+ devices and I need to set a theme that is only compatible with API11+ devices but, I cannot fix this cause (obviously) because as soon as I set the Holo.Dark theme the editor gives me an error about its compatibility. I know that I need those (only one of them) folder and their style.xml files to fix this issue but Android Studio doesn't generate those folder. I am wondering if I need to create all those folders and styles.xml files to do the trick or if there is a real workaround to this?

The current files tree is this

├───res
    │   ├───drawable-hdpi
    │   ├───drawable-mdpi
    │   ├───drawable-xhdpi
    │   ├───drawable-xxhdpi
    │   ├───layout
    │   ├───menu
    │   ├───values
    │   ├───values-w820dp
6
  • 2
    you can create the folders yourself
    – tyczj
    Sep 4, 2014 at 19:27
  • Ok, fine. So I assume Google did delete this function in newer APIs Sep 4, 2014 at 19:29
  • what do you mean this function, the use of the folders or creating them when you create a new project?
    – tyczj
    Sep 4, 2014 at 19:30
  • To automatically create the files Sep 4, 2014 at 19:40
  • It never had a "function" to automatically create those directories. It has always been based upon project and activity templates. Those templates change over time, and vary between the ADT plugin for Eclipse and Android Studio. Sep 4, 2014 at 19:46

2 Answers 2

0

If you are using Android studio, right click res in your project, then New->Android resource file, and select the resource type: Values, and you can select size, region and others properties at left side.

2
  • Yeah, I knew that, I was asking if Android Studio could do it automatically. Sep 5, 2014 at 11:06
  • As far as I know, Android Studio won't do itself.
    – Thinsky
    Sep 9, 2014 at 5:53
0

I have the same problem on Android Studio. after I create new folder "values-v11", it doesn't show in Android Studio. you should open this folder in Explore and add *.xml file to this folder then the *.xml file will show in Android Studio in the "values" folder

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.