2010-04-29 49 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屏幕布局已更改。這可能是 由不同的顯示器激活引起的。