SP vs DP 字體大小 與 Layout elements大小

sp
Scale-independent Pixels - this is like the dp unit, but it is also
scaled by the user's font size preference.
dp
Density-independent Pixels - an abstract unit that is based on the
physical density of the screen.