错误原因:requestWindowFeature(Window.FEATURE_NO_TITLE); 这句用于不显示标题栏的语句放在了setContentView(R.layout.main);语句之前