有两种方案
一.进入清单列表——》android:theme="@style/AppTheme" ——》parent="Theme.AppCompat.Light.DarkActionBar" 中的 DarkActionBar 改成 NoActionBar
二.
// 隐藏电量 this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);