Skip to content Skip to sidebar Skip to footer

If I Have An Image 50dp Wide/tall In Xhdpi, What Size Do I Make For Mdpi?

I am working with a graphic designer at the moment who is trying to verify what sizes images I am currently using in my app so he can create new images in the right size for all re

Solution 1:

According to Android Documentation.

From a base image size, there is a 3:4:6:8:12:16 scaling ratio in drawable size by DPI.

LDPI - 0.75x
MDPI - Original size // means 1.0x here 
HDPI - 1.5x
XHDPI - 2.0x
XXHDPI - 3x
XXXHDPI - 4.0x

According to the upper difference you can calculate the ImageSize resoultion.

Update :

you have create different size of Image like HDPI, MDPI, XHDPI. but that is not mean that you can set ImageViewHeight and Width according to it's Drawable.

Example :

let's some device have small screenSize but it is high density support so you have to set high resolution density Image but the Size of the ImageView you have create small in that case.

Post a Comment for "If I Have An Image 50dp Wide/tall In Xhdpi, What Size Do I Make For Mdpi?"