I need to keep images inside a second level folder in res and access through java and xml. But when I import the image folder to res or outside it shows errors.
Thank you.
I need to keep images inside a second level folder in res and access
Share
You can’t in
/resdirectory. Android resources doesn’t support like second level directory hierarchy. because of generation of id in R.java file.The only way is either put those images in
/assetso its allowed second level directory hierarchy.Or just rename your images like with folder name prefix and put as it is in res directory.