隐藏Android运行时的状态栏: 官网连接 - 一个简单的案例,方便以后用到,记录一下。 在MainActivity中添加如下代码: //隐藏状态栏 View decorView = getWindow().getDecorView(); int hideAction = View