android全屏显示
16lz
2022-05-29
无title bar
requestWindowFeature(Window.FEATURE_NO_TITLE);
必须放在setContentView(R.layout.main); 前面,否则会报错。
全屏
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
效果为启动后状态条有个消失的动画,然后全屏
FLAG_FULLSCREEN
Hide all screen decorations (e.g. status bar) while this window is displayed. This allows the window to use the entire display space for itself -- the status bar will be hidden when an app window with this flag set is on the top layer.
Constant Value: 1024 (0x00000400)更多相关文章
- Android(安卓)沉浸式状态栏 支持4.4及以上。
- GridView 实现水平拖拉效果
- GridView 实现水平拖拉效果
- Activity半透明效果
- android 按钮的点击缩放
- android 状态栏与标题栏一体化
- Android中判断网络连接是否可用及监控网络状态
- android中去掉标题栏和状态栏
- android 比较精简的list对话框代码