Create folder in drawing mode

Is it possible to create my own folder in drawable and put all my images in this folder as:

"draw \ Myimages \ p.png .."

If possible, than I can use these images in my work. Usually we use "R.drawablw.p", but now how can I write it down, because now my images are in the folder with the picture \ Myimages

please suggest me ..

regarding Anshuman

+7
source share
2 answers

No, you cannot create your own hierarchy of files in a drawable directory.

But you can see at http://developer.android.com/guide/topics/resources/providing-resources.html :

However, if you need access to the original file names and file hierarchy, you might consider storing some resources in the assets / directory (instead of res / raw /). Files in assets / do not have a resource identifier, so you can only read them using AssetManager.

If you have a lot of resources, this may be useful for you.

+10
source

No, the resource mechanism does not support subfolders in the drop-down directory. You cannot use.

+6
source

All Articles