Ixx*_*Ixx 4 android resolution screen
我怎么知道一个设备有多少DPI(因此它是ldpi/mdpi/hdpi/xhdpi, - 和屏幕尺寸,也是用dp-xlarge/large/normal/small测量的 - 根据http://开发人员.android.com/guide/practices/screens_support.html)?
我知道设备的分辨率和对角线尺寸,例如:
显示TFT LCD,对角线为3.5英寸(89毫米).
带Gorilla玻璃的320×480像素HVGA
16M色
(摘自http://en.wikipedia.org/wiki/Samsung_Galaxy_Ace)
不需要以编程方式,只是为了计算自己.