在setContentView()方法之前加上 //取消显示标题 this.requestWindowFeature(Window.FEATURE_NO_TITLE); //取消显示任务栏 this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 即可