在activity的onCreate方法中调用requestWindowFeature(Window.FEAE_NO_TITLE); 在setContentView(R.layout.activity_main)这句代码之前调用 即可