dpi是像素密度,指的是在系统软件上指定的单位尺寸的像素数量dip:device independent pixels(设备独立像素)dip = dp1dp =当前屏幕密度/160 * 1pxsp:scale-independent pixels(缩放独立像素)1sp=1dp。主要用作字体的单位