在Oncreate中的setContentView(R.layout.activity_mian);前面加上
requestWindowFeature(Window.FEATURE_NO_TITLE);
如果有多个页面的话每个页面都要这样做