开发者

How do I get the generalized screen size?

开发者 https://www.devze.com 2023-03-06 00:59 出处:网络
http://developer.android.com/guide/practices/screens_support.html states: Terms and concepts Screen size Actual physical size,

http://developer.android.com/guide/practices/screens_support.html states:

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.

How do I programmatically get the generalized size of the device screen? The method or property I am lo开发者_开发技巧oking for will return one of: small, normal, large, and extra large. (or const/enums that can be mapped to those)

Thanks.

-mz


Use screenLayout in the Configuration object.

0

精彩评论

暂无评论...
验证码 换一张
取 消