What is difference between dp unit and px unit?
Answers
Answered by
0
dp Density - independent Pixels - an abstract unit that is based on the physical density of the screen. Theseunits are relative to a 160 dpi screen, so one dp is one pixel on a 160 dpi screen. ... sp -Scale-independent Pixels- this is like the dp unit, but it is also scaled by the user's font size preference.
Similar questions