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?
Yes, you can have a res/drawable
folder, ie no suffix. It will be used for all resolutions. You can also use the -nodpi
suffix, see Supporting Multiple Screens for details.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.