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.
Asked
Active
Viewed 476 times
1 Answers
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.
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

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