android全屏设置代码
16lz
2021-01-23
参考:http://www.oschina.net/code/snippet_12_3446
在AndroidManifest.xml的Activity声明中加入属性 :
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
另,设置竖屏 屏蔽 横屏的方法: android:screenOrientation="portrait" 反之则用 landscape。
如不屏蔽加速感应器,则不用设置此属性。即 默认为:android:screenOrientation="sensor"
更多相关文章
- 各种控件属性
- AndroidManifest.xml 中application 的 android:name 属性作用
- Android键盘属性
- Android布局属性详解之RelativeLayout
- xmlns:android作用以及自定义布局属性
- Android:EditText屏蔽输入法弹窗
- 关于相对布局RelativeLayout的各种属性