160ppi的设备上1dp=1px;
320ppi的设备上1dp=2px;
一般情况下,dp大

dp和px的换算公式 :
dp*ppi/160 = px。比如1dp x 320ppi/160 = 2px。

PPI = √(长度像素数² + 宽度像素数²) / 屏幕对角线英寸数