1

I want to find which android devices comes under which mdpi, xxhdpi, xhdpi,etc.. I want to support ImageView width for all android devices.So, for that I wanted to mention layout width size specifically for mdpi,xxhdpi,xhdpi,etc.

Sandhiya
  • 339
  • 2
  • 14

1 Answers1

1

Step One

Take a look at this this table for understanding which DPI maps to which density qualifier.

For example 0-120dpi refers to ldpi, 120-160dpi refers to mdpi and so on.

enter image description here Step Two

Now, when how to calculator DPI/PPI of the mobile screen. There is a formula. Square root of summation of square of width px and height px divided by screen diagonal length. Check the formula in detail here here enter image description here

touhid udoy
  • 4,005
  • 2
  • 18
  • 31