Pixels to DP Calculator

Include the number of Pixels, and the density of the device to obtain the Density-independent pixels (dp) value.

dp = (width in pixels * 160) / screen density