Pallas
Pallas

Reputation: 1579

Where is my drawable folder?

When I go into the res folder for my project I only see the drawable-hdpi, drawable-ldpi, and drawable-mdpi folders. Every tutorial I've read says put the image in the drawable folder. Am I supposed to have one?

Upvotes: 3

Views: 8891

Answers (3)

Sharan669v
Sharan669v

Reputation: 39

  1. Select the project tab on the left
  2. Under android Right click on the drawable (under folder "res").
  3. Select Show in explorer or Reveal in finder

You should be able to see the drawable folder

Upvotes: 2

devconsole
devconsole

Reputation: 7925

If you have a PNG image file you should place it into drawable-ldpi, drawable-mdpi or drawable-hdpi, depending on its resolutions. Ideally you should provide three versions (or four, with xhdpi) of your bitmap for the different screen pixel densities.

If you have a drawable resource defined in XML that is independent of pixel dentity (e.g. a Shape Drawable) you should place it in drawable.

Upvotes: 4

DeeV
DeeV

Reputation: 36045

It doesn't get created automatically when you create the project like the others. Just create a folder named drawable in the same location as those other folders. You also do this for anim, animator, values-x, raw, menu, and basically any other specialty resource folder that you may need.

Upvotes: 10

Related Questions