Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where should I put a shape drawable in my Android folders?

Tags:

android

I have a .xml file representing a shape and 5 drawable-*** folders (for hdpi, ldp, mdpi, xhdpi, xxhdpi).

Since this is a shape, I assume I only need one copy? Should I create a folder called drawable and place it in there? Or do I need one copy of the shape in each of the resolution specific folders?

like image 579
sdasdadas Avatar asked Mar 01 '13 02:03

sdasdadas


1 Answers

Yes, you can have a res/drawable folder, i.e. no suffix. It will be used for all resolutions. You can also use the -nodpi suffix, see Supporting Multiple Screens for details.

like image 60
Jason Sankey Avatar answered Sep 20 '22 16:09

Jason Sankey