What DPI is a simple tool for Android Developers/Designers to quickly find out the screen parameters.
Basically this app will show you:
Density
Screen Resolution in pixels
Density Factor
Resolution in dp (Density Independent Pixels)
xdpi (Screen's x dots per inch)
ydpi (Screen's y dots per inch)
- Density:
Android is using
ldpi
mdpi
hdpi
xhdpi
xxhdpi
andtvdpi
to represent the screen densities. - Screen Resolution in pixels: yeah, that's your device's resolution in pixels.
- Density Factor: To do a conversion from pixel to dp, Android using the density factors, which differs from the screen density.
mdpi
is baseline screen density, so it has density factor 1.0, thenhdpi
is 1.5, thenxhdpi
is 2.0. So 1 pixel onxhdpi
equals 1 * factor = 1 * 2 = 2 dp. So as 1.5 dp onhdpi
and 1 dp onmdpi
. - Resolution in dp: Just showing your current screen's resolution in dp.
- xdpi and ydpi: Shows you the Dots Per Inch in x axis and y axis of your screen.