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 7929741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:11:22+00:00 2026-06-03T20:11:22+00:00

does an image of the same pixel dimensions in drawable-hdpi render the same or

  • 0

does an image of the same pixel dimensions in drawable-hdpi render the same or different in drawable-mdpi folder?

  • 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-03T20:11:24+00:00Added an answer on June 3, 2026 at 8:11 pm

    Yes, they will render differently.

    Each time you provide higher density images, those images will need to have a larger size in pixels to account for the density but appear at the same size in dp. To convert dp to pixels, multiply a value in dp by the device’s density multiplier. mdpi is 1.0, hdpi is 1.5, xhdpi is 2.0. Therefore 100dp in hdpi is actually 150px.

    An app with an image in drawable-mdpi/foo.png at 100×100 pixels would supply a higher density version of that same image in drawable-hdpi/foo.png at 150×150 pixels.

    If an image is 100×100 pixels, when placed in the -mdpi directory it will be interpreted as having medium density. On a medium-density device it will be rendered 1:1. The same applies for -hdpi assets on a high density device, etc. The difference happens when the system uses an asset from a different density bucket than the device’s own density. This happens when an asset for the device’s native density is not available.

    If an image is 100×100 pixels and is placed in the -hdpi directory it will be interpreted as having high density. If there is no corresponding -mdpi version of that image on a medium-density device, the medium density device will scale the image down. mdpi’s density multiplier is 1, hdpi’s density multiplier is 1.5. 1/1.5 = 0.66. The image will be scaled down to 2/3 of its original size.

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

Sidebar

Related Questions

I have photo gallery code that does image re-sizing and thumbnail creation. I use
Any idea why my image does not horizontally line up with the text above
I am creating an Image Processing app that does two image analysis functions. One
I am creating a flash object that does some heavy image lifting. What I
I am designing a web application that does server side image processing in real
Does anyone know of an Image Map-like Blackberry Control that I can use in
Does IE 9 support Base64 image encoding?
Does someone knows the image-crop which correctly works with the 'dynamically changed in the
Does anybody know how to force resize the image that opens in lightbox either
Does anyone know how to create a 1:1 disk image of an Android phone?

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.