user3103823
user3103823

Reputation: 135

Scaling ratio in Android 3:4:6:8

I would like to understand What is the scaling ratio for xxhdpi?

ldpi = 3

mdpi = 4

hdpi = 6

xhdpi = 8

xxhdpi = ?

Upvotes: 0

Views: 982

Answers (2)

Phantômaxx
Phantômaxx

Reputation: 38098

mdpi is the normal, or default. Its scale factor is 1.0.

ldpi = 0.75
mdpi = 1.0
hdpi = 1.5
xhdpi = 2.0
xxhdpi = 3.0
xxxhdpi = 4.0

You can get the scale factor of your current screen programmatically, so:

final DisplayMetrics metrics = Resources.getSystem().getDisplayMetrics();
scale = metrics.density;

Upvotes: 3

Nitin Sethi
Nitin Sethi

Reputation: 1336

It is actually 2:3:4:6 in the order mdpi, hdpi, xhdpi, xxhdpi. You can ignore the ldpi density category. Here is the Source of info.

Upvotes: 1

Related Questions