方法1:代码实现(在setContentView()前面就行了)
this.requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏
方法2:在manifest.xml修改(这样会去掉所有页面系统标题栏)
<application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar"/>
方法2:在styles.xml修改为
<resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <!-- Customize your theme here. --> </style> </resources>