传送门:https://blog.csdn.net/qq_33275597/article/details/52175890
px:指像素,对应屏幕上每一个点
dp:指设备独立像素,在每英寸160点的显示屏上,1px=1dp;其他显示屏上不相同;
传送门:https://blog.csdn.net/qq_33275597/article/details/52175890
px:指像素,对应屏幕上每一个点
dp:指设备独立像素,在每英寸160点的显示屏上,1px=1dp;其他显示屏上不相同;