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?
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.
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.
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.
Java folder java is automatically created in this folder by Android Studio.
Try to switch from Android
to Project
as shown below
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
.
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.)
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.
Other directories and resource files can be similarly added.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With