删除Android手机中的顶部通知栏

yug*_*abu 2 android

在Android手机中,我们可以看到顶部包含信号指示器,电池充电指示器等的图标.当我们点击任何应用程序时,这些指示器也会随着我们的应用程序的活动一起显示.我们运行应用程序时有没有办法删除这些指标???

谢谢,Yugandhar

Hir*_*ral 7

当然你可以在清单文件中使用这一行摆脱它:

将此行添加到清单中的每个活动标记.

android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen"
(it will set your current wallpaper as background of your activity with no Titlebar shown and all your component would be mounted on the screen)
Run Code Online (Sandbox Code Playgroud)

你也可以试试这个:

android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
Run Code Online (Sandbox Code Playgroud)