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

  • Home
  • SEARCH
  • 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 8847365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:10:25+00:00 2026-06-14T12:10:25+00:00

In Eclipse’s AVD, I’ve created two devices that are identical except for their density

  • 0

In Eclipse’s AVD, I’ve created two devices that are identical except for their density values. Device 1 has has an abstracted LCD density of 240; device 2 has 160. The resolution for both is 480×800.

Can someone explain to me why elements on device 1’s screen looks “bigger”? Since they have the same resolution, shouldn’t they be showing the same number of pixels? If anything, since device 1 has a higher density, shouldn’t it show more details/screen real estate?

Device 1

Device_1_Screenshot

Device 2

Device_2_Screenshot

Screeshots – (Click for larger variant)

As shown above, I’m drawing a circle with a radius of 15dp at a random screen position on both devices. The circle is definitely smaller on device 2, as is the action bar. Why is this?

  • 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-14T12:10:26+00:00Added an answer on June 14, 2026 at 12:10 pm

    You are drawing with dp, not physical pixels. dp try to abstract from the physical size and give the user a GUI element of the same physical size. So if the pixels on one device are smaller you need to use more physical pixels to obtain the same effect as on a device with bigger pixels.

    So:
    800 pixel / 240 pixel per inch = 3 1/3 inch (physical length of that screen dimension). Size of one pixel: 1 pixel / 240 pixel per inch = 0,004 inch.
    800 pixel / 160 pixel per inch = 5 inch. Size of one pixel: 1 pixel / 160 pixel per inch = 0,006 inch.

    So with the same resolution (number of pixels) the pixels in the lower density device are significantilly bigger (around 50% bigger in each dimension). So you need less physical pixel to draw the circle to show the circle with 15 dp.

    Simply said: Low dpi means bigger pixel. Same resolution (number of pixel) means lower dpi device has a bigger screen.

    So on physical devices these circles have the same physical size on devices with different size. But your emulator windows have the same size, for speed reasons one physical pixel is mapped to one physical pixel on your computer screen. So you are using less pixel on the low dpi device but paint them with same-size physical pixels. Solution: You need to resize the emulator window so it matches the real size. I just don’t have access to my Android SDK installation but IIRC you can set the (computer) screen dpi in the AVD launch options so the size will be set automatically.

    Here are the images scaled to retain the proportion of the real devices:

    160 dpi device
    240 dpi devce

    As you can see the circles have the same physical size, as have the action bar, the icon and the status bar.

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

Sidebar

Related Questions

eclipse has a very nice feature. that is when you debug, it reloads changes
Eclipse has that +/- on the left to expand and collapse blocks of code.
Eclipse IDE showing error on Jcombobox which says that JcomboBox can't be parametarized eg
Eclipse can't detect my android device but it can run with the emulator. i
Eclipse has a built in functionality to find unused variables (and methods too I
Eclipse 3.5 has a very nice feature to generate Java hashCode() functions. It would
Eclipse has an easy way to find all references to a variable, but is
Eclipse text editors has this nice vertical rulers at both sides where bookmarks and
Eclipse Indigo has a Dynamic Web Project wizard(File->New ->Other->Web->Dynamic Web Project) I am not
Eclipse is really bugging me with this. I have an Android project that is

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.