Android studio: how to organize images in subfolder

Asked

Viewed 101 times

-1

when placing the images in a new subfolder of drawable, the images and the new folder no longer appear in the left panel, in the "android" tab, in the other tab as "Packages" the folder is there.

Aba Packages mostrando a pasta

Aba Android mostrando apenas as imagens soltas

1 answer

1

Android studio only recognizes the following sub-folders of drawable:

Image size sub-folders:

drawable-hdpi

drawable-mdpi

drawable-xhdpi

drawable-xxhdpi

  • In this case, android checks which is the best image format to be able to run on your application installed on the device.

Version sub-folders:

earlier versions...

drawable-V16

drawable-v17

drawable-v18

drawable-v19

higher versions....

  • images contained in these version drawable will only be shown on devices with the same API version.

In your case, your JPEG images will only be shown on devices whose API version is 24 as they are contained in the "drawable-v24 folder".

Browser other questions tagged

You are not signed in. Login or sign up in order to post.