Menu Home

Web Share

What Is Screen DPI?

DPI stands for Dots Per Inch. It is a measurement of screen density, indicating how many individual dots (or pixels) fit into one inch of the display. The higher the DPI, the more tightly packed the pixels are, resulting in sharper and clearer visuals.

DPI vs. Resolution

Although related, DPI is different from screen resolution. Resolution refers to the total number of pixels (e.g., 1920×1080), while DPI describes how densely those pixels are arranged per inch.

Android DPI Categories

Android classifies devices into standard screen density buckets to simplify UI scaling. These categories help developers design responsive UIs:

DPI Category Approximate DPI Description
ldpi~120 dpiLow-density screens
mdpi~160 dpiBaseline (medium density)
hdpi~240 dpiHigh-density screens
xhdpi~320 dpiExtra-high density
xxhdpi~480 dpiExtra-extra-high density
xxxhdpi~640 dpiExtra-extra-extra-high density

Screen Size Categories

In addition to DPI, Android also categorizes screen physical size using the following qualifiers:

These size categories help developers design layouts that adapt to physical screen space, not just pixel density. For example, a normal screen with xxhdpi may still display content differently than a large screen with mdpi.

Why It Matters

Combining both DPI and screen size categories allows Android to select the best layout and image assets for every device. Developers often provide:

This ensures a consistent user experience, regardless of screen sharpness or physical dimensions.

Conclusion

Screen DPI determines how sharp content appears, while screen size categories define how much content can fit on screen. Understanding both is essential for creating flexible, high-quality Android applications that run smoothly on all types of devices.