Skip to content Skip to sidebar Skip to footer

Possible To Create Subfolders In Drawable Folder In Android Studio?

Is it possible to create subfolder structures inside main res folders, especially in drawable folder using Gradle? I have attempted this so far sourceSets { main { res

Solution 1:

No, Android expects all the files to be in a single directory, and does not allow subfolders to be used.

Most apps use a naming convention in place of subfolders, so in your example you might end up with a list of files:

  • intro_welcome.png
  • intro_background.png
  • loading_splashscreen.png
  • actionbar_delete.png

Post a Comment for "Possible To Create Subfolders In Drawable Folder In Android Studio?"