In an android project, if I have a large number of images inside the drawables directory, can I organize them into sub-folders?
Example of a directory structure:
drawable/*.png
drawable/deporte/*.png
drawable/finanzas/*.png
In an android project, if I have a large number of images inside the drawables directory, can I organize them into sub-folders?
Example of a directory structure:
drawable/*.png
drawable/deporte/*.png
drawable/finanzas/*.png
Currently with Android Studio you can create subfolders but the compiler does not take them into account and excludes them, in fact they are not included in the
R.java
.What is done is to add suffixes or prefixes to the resource names, for example:
For organization purposes, if you can place them in subdirectories, I understand you, because when you have a considerable amount of drawables, just opening the folder in Android Studio is scary! but at the time of the code it does not detect the subdirectories, you must use suffixes.