Android 程序设置全屏
在onCreate里面设置如下代码
屏蔽landscape只需要在AndroidManifest.xml里加入 android:screenOrientation="portrait"
portrait是竖屏,landscape是横屏
<activity android:name=".hello"
android:label="@string/app_name" android:screenOrientation="portrait">
加在这句里面。
本文介绍如何在Android应用中实现全屏显示并去除状态栏及标题栏的方法,同时提供固定屏幕为竖屏的设置步骤。
1915

被折叠的 条评论
为什么被折叠?



