http://developer.android.com/guide/practices/screens_support.html状态:
Terms and concepts
Screen size Actual physical size, measured as the screen's diagonal. For simplicity, Android groups all actual screen sizes into four generalized sizes: small, normal, large, and extra large.
如何以编程方式获取设备屏幕的通用尺寸?我正在寻找的方法或属性将返回以下之一:small、normal、large 和 extra large。 (或可以映射到那些的常量/枚举)
谢谢。
-mz
最佳答案
使用screenLayout
在 Configuration
对象中。
关于android - 如何获得通用屏幕尺寸?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5998264/