1
我为我的android应用程序设计了一个自定义主题。 我希望应用程序进入全屏,但也显示TitleBar。 我想隐藏/禁用NotificationBar,但保留TitleBar。 我厌倦了这段代码。但是这隐藏了TitleBar而不是NotificationsBar。在自定义主题中隐藏通知栏Android
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
http://stackoverflow.com/a/10803992/776244 –