Reputation: 135
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
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
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