android dp与px的换算

  1. pixs =dips * (densityDpi/160)  
  2.   
  3. dips=(pixs*160)/densityDpi
densityDpi为密度

你可能感兴趣的:(Android)