Android(安卓)全屏设置
16lz
2021-12-04
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);//去掉信息栏
2、代码中设置 在 setContentView(R.layout.layout)前面加入: this.requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏 this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);//去掉信息栏
提醒:必须在setContentView()前面加入
更多相关文章
- android 设置Button或者ImageButton的背景透明
- Android(安卓)Studio使用问题解决
- TextView的走马灯效果
- Spinner弹出位置变化
- [zz http://www.cnblogs.com/oldfeel/archive/2012/05/15/250129
- Android(安卓)设置默认锁屏壁纸接口
- android去除ImageButton白色边框
- 设置TextView文字居中
- 设置透明,模糊,黑暗度