dp/dip(Density-independent Pixels) - an abstract unitthat is based on the physical density of thescreen.
sp(Scale-independent Pixels)this is like the dpunit, but it is also scaled by the user's fontsize preference.
pt(Points) - 1/72 of an inch based on the physical size of the screen.
mm(Millimeters) - based on the physical size of the screen.
in(Inches) - based on the physical size of thescreen.
px(Pixels) - corresponds to actual pixels on thescreen. Not recommended.
x%p
x%