更新时间:2023-12-01 16:23:16
您可以检查出这个
android:screenOrientation="sensor"
or
android:screenOrientation="user"
添加其中一个到你的清单<活动.............. />
。
不要忘了把它添加到您的清单应用程序,以避免重新创建活动安卓configChanges =keyboardHidden |方向|屏幕尺寸
add one of them to your manifest <activity............../>
.
and don't forget to add this to your application in manifest as well to avoid recreating your activity android:configChanges="keyboardHidden|orientation|screenSize"