Android 隐去标题栏 跟 状态栏

Android 隐去标题栏和 状态栏1、代码设置this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULL

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" 隐去状态栏

?