QQ截圖20180822160340.jpg
設(shè)置橫豎屏切換的代碼:(按圖片位置填寫)
android:configChanges="orientation|screenSize|keyboardHidden"
禁止橫豎屏切換的代碼:
android:screenOrientation="portrait"http://一直為豎屏顯示
android:screenOrientation="landscape"http://一直為橫屏顯示
設(shè)置橫豎屏切換的代碼:(按圖片位置填寫)
android:configChanges="orientation|screenSize|keyboardHidden"
禁止橫豎屏切換的代碼:
android:screenOrientation="portrait"http://一直為豎屏顯示
android:screenOrientation="landscape"http://一直為橫屏顯示