Misterrai
Misterrai

Reputation: 77

How to create drawable folder in res?

I am trying to create drawable-hdpi drawable-xxhdpi drawable-ldpifolders for different screens but unable to create as it says the folders already exist but i can't see them also when trying to create drawable-xxhdpi folder on click nothing happens no folder's are create

Screenshots below

Can't see any drawable-xhdpi folder although it says it exist

enter image description here

Here on clicking OK nothing happens no folder is created

enter image description here

Upvotes: 0

Views: 4319

Answers (3)

Priyanka Kaur
Priyanka Kaur

Reputation: 44

You do not need to explicitly create the drawable folders for different resolutions. Whenever you will add any image to the project's drawable folder, by clicking right on the drawable folder and pasting the image there, a dialog will open up, that will ask you to select from drawable-hdpi, drawable-mdpi, drawable-xhdpi, and drawable-xxhdpi. You can then select the suitable one from the drop down, and you will be able to see the distinctions within the drawable folder itself.

Upvotes: 0

Vishal Chhodwani
Vishal Chhodwani

Reputation: 2577

Yes it already exist.

you have to change the project structure

Click on top left dropdown where Android Appears.

Select project from this dropdown and you will be able to see all drawbale folders.

Screenshot

Upvotes: 2

MadScientist
MadScientist

Reputation: 2174

Its because you might not have any files inside your res/drawable-xxx folders

To access them, change your project navigation:

To do so, check the top left pane for some written as 1 Project click on that or alternatively press Alt+1 here, if you see the default selection will be Android with an android bot click on the two left-right arrow icons select Project Files and then navigate!

Upvotes: 0

Related Questions