安卓去掉顶部的 head 标题栏删除
this.requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_main);
转自 https://blog.csdn.net/u012246458/article/details/52997727
1. 继承 Activity 不能继承 AppCompatActivity ;
2. 加入下面代码:(写在 setContentView(R.layout.activity_main);之前)