What is best Resource size for Android

Photo by National Cancer Institute on Unsplash

Background Image Size in Android

When we think about android resource files we get confused because we have seen lot of devices with different size and resolutions and generally following question comes in mind

What size is required for all devices?

What is image quality requirement?

Should I create separate images for each of screen sizes?

So, Do I have to worry about all these? and answer is not al all.

1. The following are the best dimensions for the app to run in all devices.

xhdpi: 640x960 px
hdpi: 480x800 px
mdpi: 320x480 px
ldpi: 240x320 px

2. What is small, med, large.. for screens?

  • xlarge screens are at least 960dp x 720dp
  • large screens are at least 640dp x 480dp
  • normal screens are at least 470dp x 320dp
  • small screens are at least 426dp x 320dp

3. This article explains screen sizes

http://developer.android.com/guide/practices/screens_support.html

To support these devices, refer to the following developer guides:

How to declare Screen incompatibility

--

--

Pragati Singh ⭐️⭐️⭐️⭐️⭐️

Android Developer Advocate & Architect ✔Technology Leader ✔Life Coach #techentrepreneur #polyglot programer #BuildBetterApp