Question: what is the difference between dp and sp in android?
Answer: dp - Density-independent Pixels - an abstract unit that is based on the physical density of the screen. These units 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.