1、直接去掉android:label="@string/app_name"
<activity
android:name=".SplashActivity"
android:label="@string/app_name"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
去掉
android:label="@string/app_name"
就没有了标题了!
2、在onCreate中添加requestWindowFeature(Window.FEATURE_NO_TITLE)
还是上面的activity,但是增加如下一行代码,同样不会显示标题
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//隐藏标题
requestWin