在activity里,一行代码: this.requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏,一定要在setContentView之前 在manifest.xml中配置: