user1151272
user1151272

Reputation: 1

pictures belong to which drawable folder

you kown android has many folder to place picture file.And now, I want to kown my picture belong to which folder(ldpi, mdpi, hdpi...)? thank you

Upvotes: 0

Views: 205

Answers (3)

karllindmark
karllindmark

Reputation: 6071

Well, that all depends on what types of pictures you're going to use.

For example, app logos are to be stored in the following way (for best use):

Size     |     Directory   
36x36    |     drawable-ldpi/
48x48    |     drawable-mdpi/
72x72    |     drawable-hdpi/
96x96    |     drawable-xhdpi/

Regular images to be included in the app could be scaled down using a 8/6/4/3 scale, leading to the following:

Directory        |     Scale % 
drawable-xhdpi/  |     100%
drawable-hdpi/   |     80% (of xhdpi)
drawable-mdpi/   |     50% (of xhdpi)
drawable-lhdpi/  |     37.5% (of xhdpi)

Upvotes: 0

Murtaza
Murtaza

Reputation: 318

Android supports several configuration qualifiers that allow you to control how the system selects your alternative resources based on the characteristics of the current device screen.

If you are a beginner and you dont have these different qualities of that single resource. place it anywhere, and link to that. Android SDK will automatically adjust and place it for urself.

For more information see this Link

Upvotes: 1

Related Questions