Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scaling ratio in Android images?

I am developing a simple informative system which will use a lot of images. The problem is I do not know how to scale them to the folder of ldpi, mdpi, hdpi, and hdpi.

I read that android uses a scaling ratio like 3:4:6:8. Can some explain to me what is this 3:4:6:8 scaling ratio? How do I use it, and what is the logic behind it?

Suppose I have a 50x50 px image in ldpi folder. If I am going to use 3:4:6:8 ratio. What will be the next image size for my mdpi folder and hdpi folder?

Please help. I dont realy understand that scaling ratio. Sorry for this, I'm only a newbie in android design.

like image 262
nelzkie Avatar asked Jun 23 '12 06:06

nelzkie


2 Answers

Mostly they use these standard sizes:

ldpi: 36*36 mdpi: 48*48 hdpi: 72*72 xhdpi: 96*96

like image 80
Yogesh Somani Avatar answered Oct 22 '22 16:10

Yogesh Somani


Its so simple.

If image size is 50*50 for Ldpi then:

MDPI => 67*67

HDPI => 100*100

XHDPI => 125*125

like image 36
Paresh Mayani Avatar answered Oct 22 '22 17:10

Paresh Mayani