Definition, Meaning & Synonyms

dp

abbreviation, computing
dee-pee
Definition
In computing, ‘dp’ often refers to ‘density-independent pixels’, a unit of measurement used to ensure that UI elements appear the same size on screens with different density levels.
Examples
  • When designing for Android, use dp to define sizes for views to ensure they look consistent on various screen sizes.
  • The developer specified margins in dp to maintain uniformity across devices.
Meaning
Density-independent pixels are a way to standardize layout dimensions across a variety of devices with differing screen resolutions to promote a more consistent user interface in applications.
Synonyms
  • density-independent pixels