Android 隐去标题栏 和 状态栏

阅读更多


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,XML)