如题所示,请教下各位Android中都有些什么计量单位?如何使用?
认证0级讲师
dp Use dp for layout sizesp Use sp for font sizepx Rarely used, usually when absolute units are needed (such as the separator height of a list)
dp Use dp for layout size
sp Use sp for font size
px Rarely used, usually when absolute units are needed (such as the separator height of a list)