1. 用代码的方法(注必须在setContentView之前设置): @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // remove title bar this.requestWindowFeature(Window.FEATURE_NO_TITLE); // full screen this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.main); } 2. 在配置文件中设置相应的Activity属性: android:theme="@android:style/Theme.NoTitleBar.Fullscreen"