1.配置文件中设置 在AndroidManifest.xml的配置文件中设置,activity下style中包含全屏的样式,android:theme="@android:style/Theme.NoTitleBar.Fullscreen"//去掉TitleBar

2、代码中设置setContentView(R.layout.layout)前面加入: this.requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏 this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);//去掉信息栏 Android 全屏设置_第1张图片
提醒:必须在setContentView()前面加入

更多相关文章

  1. Android EditText样式自定义
  2. Android样式——Styles
  3. 修改Button的样式!
  4. android样式,主题设置心得
  5. Android 在指定 LinearLayout 中动态添加BUTTON,并设置样式
  6. Android 系统字体和颜色样式

随机推荐

  1. android 多点触摸 放大 缩小 图片
  2. 闹铃设置
  3. android 网络检测
  4. Android's 2D Canvas Rendering Pipeline
  5. android 捕捉app错误信息
  6. android xml文件操作
  7. Android(安卓)OkHttp 源码解析 - 拦截器
  8. Android实现刮刮卡抽奖(上)
  9. android 黑屏状态下,开屏代码
  10. The Saygus VPhone V1 clears FCC, Will