1

I am creating an app using android studio. i created the assets folder and created sub directories under it for each activity i am using (each one has a different set of images). But on the other hand i want to support multiply screen resolutions which as i read is supported using drawable folder's, also drawable doesn't support sub directories. I am using API 19 at the moment.

Putting all the images in drawable folder will be a bug mass.

How can i achieve my goal of order in my images and supporting multiple screen resolutions

Thank you in advance

IB.
  • 1,019
  • 3
  • 13
  • 21

2 Answers2

1

there are subfoldes in drawable. take a look at this http://developer.android.com/guide/practices/screens_support.html

Izu
  • 235
  • 1
  • 5
  • Problem is that if i am loading activity1 and want to load the images that belong to this activity i am unable to do it since the drawable folder is loaded to the resources and reference with an Int unlike Assets which i can ask the activity to load all the images under "activity1" folder. – IB. Oct 19 '14 at 14:40
1

The drawables folders allow you to save various resolution versions of an image into separate folders. The OS will choose the right asset based on the device screen density for you when you ask for @drawables/image_name. /assets is more like a normal file directory. In general if you pull from assets you need to handle resolution differences on your own.

yeahdixon
  • 6,647
  • 1
  • 41
  • 43