Issue
In my application I have several folders and subfolders of images. They are inside drawables. How can I retrieve images from drawables subfolders?
Example:
drawable>actions>sports>soccer.png
How can I get this "soccer.png" photo?
Any help is appreciated.
Thanks!
Solution
No, the android resources mechanism doesn't support subfolders in the drawable directory, you can't put it.
I think if you having a subfolder with any items in it, within the res/drawable
folder, will cause the resource compiler to fail -- preventing the R.java
file from being generated correctly.
The only one thing is put the images in flat names like, drawable_actions_sports_soccer.png
.
Answered By - user370305
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.