且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

检查取向对Android手机

更新时间:2023-02-27 08:43:41

目前的配置,用来确定检索哪些资源等,如可从资源配置对象为:

The current configuration, as used to determine which resources to retrieve etc, as available from the Resources' Configuration object as:

getResources().getConfiguration().orientation

http://developer.android.com/reference/android/content/res/Configuration.html#orientation