5

Please take a look at Material IO's device metrics:

Pay attention to Google Pixel and HTC One M9.

enter image description here

These 2 devices have the same physical size, same number of pixels, but claimed to have different pixel densities.

This contradicts with my understanding of pixel density.

Which of the following is true?

  1. My understanding of pixel density is wrong. All information on the page is correct;
  2. The information on the page is wrong;
  3. On HTC One M9, although the screen size is 5.0, a small part of it is not used to display (i.e. Actual display size is smaller than Google Pixel)
  4. Something that I can't imagine
Sira Lam
  • 5,179
  • 3
  • 34
  • 68
  • it looks strange, here a similar discussion: https://superuser.com/questions/1159852/how-can-two-laptops-have-the-same-resolution-and-screen-size-but-different-pixel – Alessandro.Vegna Mar 07 '18 at 09:45
  • both devices physical densities and touch size range are different, check difference between that both device by clicking of it. – Nik Mar 07 '18 at 09:46
  • I searched up this as well, but I wish this is different from simply an information mistake – Sira Lam Mar 07 '18 at 09:46
  • @Nik Yes, but I am exactly asking why are they different – Sira Lam Mar 07 '18 at 09:47
  • There must be an error. Look at the column before the resolution: it reports the actual `dp`s. They should be larger numbers on the device with a greater density, but it's the opposite. – Phantômaxx Mar 07 '18 at 09:50
  • @KlingKlang I think that's not true. dp is a same dimension as physical length, and a lower density means it needs more physical length (therefore dp) to display the same number of pixels. – Sira Lam Mar 07 '18 at 10:29

1 Answers1

2

A friend gave me an explanation and I think it is very likely to be the correct answer:

The answer is: 4. Something that I can't imagine

(1) The density here is not pixel density. It is dp-density.

If you click on Google Pixel, you will see px/in is 441 which is the same as HTC One M9. This means their pixel densities are the same. And next to this value you see a dp/in which is different among these 2 devices. That correspond to the density on the list (2.6 and 3.0)

(2) The density (dp-density) here does not necessarily has physical meaning

This is due to the fact that under same pixel density, Google and HTC decided to define one unit of dp differently. That's why they have different values of dp even under same pixel density. This will create an effect that even if you specify the same value of dp, the View will have different physical size on these 2 devices.
Only if the whole world conform to the standard of 1x = 160dpi, dp can be used as a physical metrics.

Sira Lam
  • 5,179
  • 3
  • 34
  • 68