竖屏显示:
在 AndroidManifest.xml 相应的 activity 中加入:
android:screenOrientation="portrait"
横屏显示:
在 AndroidManifest.xml 相应的 activity 中加入:
android:screenOrientation="landscape"
不加的话默认手机系统横竖屏切换
更多好内容戳下面:
https://blog.csdn.net/wuqingsen1
竖屏显示:
在 AndroidManifest.xml 相应的 activity 中加入:
android:screenOrientation="portrait"
横屏显示:
在 AndroidManifest.xml 相应的 activity 中加入:
android:screenOrientation="landscape"
不加的话默认手机系统横竖屏切换
更多好内容戳下面:
https://blog.csdn.net/wuqingsen1