情况一:整个工程所有activity都去头---在清单文件中的application中,android:theme="@style/AppTheme" 的具体实现中添加<item name="android:windowNoTitle">true</item>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<item name="android:windowNoTitle">true</item>
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
情况二:某个activity去头---activity中添加requestWindowFeature(Window.FEATURE_NO_TITLE)
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//去头
//requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.activity_spiash);