<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"
就没有了标题了!
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //隐藏标题 requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_splash);
}
<activity android:name=".SplashActivity" android:label="@string/app_name" android:theme="@android:style/Theme.Black.NoTitleBar" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>注意,显示dialog时,会呈现黑色界面!
<item name="windowNoTitle">true</item>加以应用也可。
原文地址:http://blog.csdn.net/xiabob/article/details/42833627