Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8829509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:50:56+00:00 2026-06-14T07:50:56+00:00

I am designing a background for my app for all Android devices. I was

  • 0

I am designing a background for my app for all Android devices.
I was thinking what would be the size of the image in pixels?

From the developer site I found the following equation

px = dp * (dpi / 160)

Then, px depends on two variables.

First, dp, and we have

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

Second, dpi and we have

 low-density (ldpi) screens (~120dpi).
 medium-density (mdpi) screens (~160dpi).
 high-density (hdpi) screens (~240dpi).
 extra high-density (xhdpi) screens (~320dpi).

So where should I put my drawables in the Screen characteristic? I mean should I use “size” or “Density”. If I classify my images using the “size” “dp”, what is the dpi for these images?
and if I classify my images using the “density” “dpi”, what is the dp for these images?

I am confused on how to finally size my images. Also, Maybe you can have a medium density screen with a large screen size, right?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:50:57+00:00Added an answer on June 14, 2026 at 7:50 am

    There are many many different resolutions out there. For instance there could be 4 different devices which are:

    640 px x 480 px

    The difference is, some of these devices are mdpi, some are hdpi, xhdpi etc. meaning they could be described as “large”, “medium” or “xlarge” screen types.

    So, for an mdpi device which is 640x480dp the background would be 640x480px however, a device which is 640x480dp and hdpi would need a background which is 960x720px, you’ll notice they’re the same size “bucket” but have different densities and therefore different resolutions.

    So, if you just want your background to fit as well as can be expected you’ll need:

    • large-xhdpi
    • large-tvdpi
    • large-hdpi
    • large-mdpi
    • large-ldpi

    (then the same for normal)

    • normal-xhdpi
    • normal-tvdpi

    etc etc etc.

    You’re best bet however is to use an image which can stretch, a shape, tile or can be converted to a 9-patch because it would be a pain in the rump to make every background available for every device. If you were going to do it I would look up a resource descrivbing every screen dimension on the market currently and setting it via programmatic methods.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background I'm designing a Rails app to record research data. Most of it can
I am designing an Android App. My aim is that if the App is
I am designing a window using QWidget and set a background image, when i
I'm currently designing an app and all the content is nearly finished. However, I
So, not having come from a database design background, I've been tasked with designing
Today I was designing a transparent PNG background that would only sit in the
Background: We are designing a physics app, that will do a lot of data
I'm designing a site with a fixed repeated background but can't work out why
When im designing my android app im using XML and for this app im
i tried designing an xml layout for my android app. It looks good in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.