DP is just a unit of measure that normalizes for different screen pixel densities, which means a value like 50dp
always has the same physical size no matter what device you run your app on.
As far as actually designing your layouts, you should almost always use either wrap_content
or match_parent
instead of setting hard numbers for width and height. Exceptions usually come about when you use layout_weight
for children of a LinearLayout
for doing proportional sizes, or when using the various layout anchors for children of a RelativeLayout
.