做手机签名的时候,发现手机会直接死机;以及SurfaceView横屏的时候也为无法正常播放。
在 AndroidManifest 中 的节点中加入下列属性就可以正常运行了
android:screenOrientation="landscape"
android:configChanges="orientation|keyboardHidden|screenSize"
landscape 限制页面横屏显示
portrait 限制页面竖屏显示
做手机签名的时候,发现手机会直接死机;以及SurfaceView横屏的时候也为无法正常播放。
在 AndroidManifest 中 的节点中加入下列属性就可以正常运行了
android:screenOrientation="landscape"
android:configChanges="orientation|keyboardHidden|screenSize"
landscape 限制页面横屏显示
portrait 限制页面竖屏显示