Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New created "values" folder is not visible in Android Studio

In Android Studio, I want to create the folders values-v14 values-v21 inside the res folder.

But when I tried to make it like: right click on res folder select option New >Directory, then after creating the folder, it is not visible in Android Studio. But when I select the option Show in Explorer, then it is visible.

How do I create a folder in Android Studio, so that I can change files like styles.xml, etc?

like image 486
PPD Avatar asked Jan 12 '15 07:01

PPD


People also ask

How do I create a folder in Android Studio?

In the drop down menu click on the new option. After this a drop down menu opens here you will see directory option just click on that. After this enter the name of your directory / folder and press enter this will create a new folder / directory inside your root folder.

What is the utility of values folder in Android?

The res/values folder is used to store the values for the resources that are used in many Android projects to include features of color, styles, dimensions etc.

Where is the lib folder in Android Studio?

How to find the libs folder in Android Studio? If you are unable to find the libs folder in Android studio then open your android project in “Project” mode If the project is already opened in the “Android” mode. Then go to Your Project Name > app > libs and right-click on it and paste the downloaded JAR files.

Is automatically created in this folder by Android Studio?

Java folder java is automatically created in this folder by Android Studio.


2 Answers

Try to switch from Android to Project as shown below

enter image description here

like image 102
J.Vassallo Avatar answered Oct 08 '22 19:10

J.Vassallo


Switching from the Android view to the Project view will allow you to see the directory structure, but it is less convenient for viewing and editing Android files.

There is a better way. Don't use New > Directory.

Right click values and choose New > Values resource file.

enter image description here

Select Version from the list and click the >> button. Write styles as the file name and 14 as the version number and click ok. (Repeat all this for version 21.)

enter image description here

Android Studio will automatically create values-v14 and values-v21 directories with the new styles.xml files in them. And in your Android project view you conveniently see all three styles.xml files together.

enter image description here

Other directories and resource files can be similarly added.

  • Layout files
  • Language translations
like image 25
Suragch Avatar answered Oct 08 '22 19:10

Suragch