Why is it problematic to define sizes using pixels on Android?

✅  The correct answer is:

  • Different devices have different understanding of what a pixel is , affecting the appearance of your UI elements

Question:

Why is it problematic to define sizes using pixels on Android?

Solution:

  • Although screen pixel density varies, this does not impact the use of pixels to define sizes.
  • Large devices always have more pixels, so your UI elements will be e=affected if you define them with pixels.
  • The same number of pixels may correspond to different physical sizes, affecting the appearance of your UI elements.
  • Different devices have different understanding of what a pixel is , affecting the appearance of your UI elements