2010-04-29 51 views
0

。它有同样的描述2个不同的常数(https://developer.android.com/reference/android/R.attr.html#configChangesAndroid:'orientation'和'screenLayout'有什么区别?

orientation 0x0080 The screen orientation has changed, that is the user has rotated the device. 
screenLayout 0x0100 The screen orientation has changed, that is the user has rotated the device. 

很多消息表明指定:

android:configChanges="keyboardHidden|orientation" 

但它不应该是:

android:configChanges="keyboardHidden|orientation|screenLayout" 

回答

1

我从来没有用这种方式看到screenLayout。我猜想这是文档中的复制粘贴错误。

+0

对,似乎是评论中的一个错字。另外这个标志不是1.5,但可以在2.0中看到。 – alex2k8 2010-04-30 14:21:20

1

现在它被固定在文档:

取向0x0080屏幕方向发生了变化,也就是 用户已经旋转该装置。

screenLayout 0x0100屏幕布局已更改。这可能是 由不同的显示器激活引起的。