2011-01-22 108 views

回答

26

执行下面的代码:

float scale = getApplicationContext().getResources().getDisplayMetrics().density; 

并检查scale值:

  • 0.75装置低密度
  • 1.0装置标准(介质) DENSI TY
  • 1.5装置高(大)密度
  • 2.0装置额外高密度
  • 3.0装置额外额外高密度
  • 4.0装置额外额外额外高密度

查看documentation了解更多信息。

+0

嗨chirag如果可能pls看到帖子http://stackoverflow.com/questions/4758278/redraw-image-on-canvas-on-touch-event – Hitendra 2011-01-22 05:04:25

相关问题