iappmaker
iappmaker

Reputation: 3005

Correct size for the image in Drawable folder

In my App I found that the background used is occupying a large memory space. I planned to keep different size image for different devices of varying size. Now there are 5 folders in my drawables.

drawable-hdpi drawable-ldpi drawable-mdpi drawable-xhdpi drawable-xxhdpi

I need to create the background image which is going to occupy the entire screen. The quality should not be compromised. Based on the above scenario can you please let me know the right size of the image for 5 different folders.

Thanks in advance

Upvotes: 3

Views: 1345

Answers (1)

David Jashi
David Jashi

Reputation: 4511

If "quality should not be compromised" is absolutely crucial, then there are much more different dimensions for you to support. There always be some size or aspect ratio differences on devices with similar size, for example 800x480 and 848x480 or 1280x720 and 1280x800

If you accept minor distortion, then you may use following sizes, take from the link in first comment:

1920dp x 1080dp
960dp x 720dp
640dp x 480dp
470dp x 320dp
426dp x 320dp

Upvotes: 1

Related Questions