无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)

更多相关文章

  1. Android(安卓)沉浸式状态栏 支持4.4及以上。
  2. GridView 实现水平拖拉效果
  3. GridView 实现水平拖拉效果
  4. Activity半透明效果
  5. android 按钮的点击缩放
  6. android 状态栏与标题栏一体化
  7. Android中判断网络连接是否可用及监控网络状态
  8. android中去掉标题栏和状态栏
  9. android 比较精简的list对话框代码

随机推荐

  1. Android(安卓)编译时注解
  2. android 纯c/c++开发
  3. android布局学习利器-Hierarchy Viewer
  4. Android摄像头--通过Intent启动
  5. AndroidManifest.xml中 andorid 版本号 v
  6. Windows上搭建android开发环境
  7. 系出名门Android(8) - 控件(View)之TextS
  8. android 电容屏(二):驱动调试之基本概念篇
  9. 页面未随软键盘上升及android隐藏软键盘
  10. Android(安卓)IOS WebRTC 音视频开发总结