Android 隐去标题栏 和 状态栏
16lz
2021-01-23
阅读更多
1、代码设置
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
//隐去电池等图标和一切修饰部分(状态栏部分)
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
// 隐去标题栏(程序的名字)
setContentView(new MyView(this));
2、设置 AndroidManifest.xml application 样式
android:theme="@android:style/Theme.NoTitleBar" 隐去标题栏android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 隐去状态栏
更多相关文章
- Android标题栏、状态栏图标文字颜色及背景动态变化
- Android中TextView通过SpannableString设置字体、大小、颜色、样
- SeekBar 的自定义样式
- Android Drawable图标生成工具
- android spinner 样式完全自定义[包括RadioButton和RatingBar效
- android UI学习 -- 设置界面的布局(包括style的使用,selector的
- android绘图画Chrome图标
- Android TextView设置个别字体样式,上下标