Android 程序设置全屏
在onCreate里面设置如下代码
屏蔽landscape只需要在AndroidManifest.xml里加入 android:screenOrientation="portrait"
portrait是竖屏,landscape是横屏
<activity android:name=".hello"
android:label="@string/app_name" android:screenOrientation="portrait">
加在这句里面。