0

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

ldpi = 3

mdpi = 4

hdpi = 6

xhdpi = 8

xxhdpi = ?

user3103823
  • 135
  • 1
  • 3
  • 13

2 Answers2

3

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;
Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
  • if i have 95*95 in the mdpi, What is the scaling ratio for xxhdpi? – user3103823 Jan 31 '14 at 20:33
  • 95*3 and 95*3? I'd say 285*285. but 95*95 looks strange to me. I'd prefer 96*96 (sorry, it's because of my professional deformation, to always look for **even numbers**, possibly **powers of 2** or anyway following a **predeterminate ruleset**) – Phantômaxx Feb 01 '14 at 11:44
1

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.

Nitin Sethi
  • 1,416
  • 1
  • 11
  • 19
  • i have this screen for mdpi that is ok : http://i.stack.imgur.com/ybB5U.png but i have this screen for xxhdpi !!!! http://i.stack.imgur.com/uGBAt.png !!!!!! How do I correct it? – user3103823 Jan 31 '14 at 20:06
  • make the dimensions for xxhdpi as 3 times that of mdpi. – Nitin Sethi Feb 01 '14 at 08:57