最后,不要忘了在AndroidManifest.xml中将SplashScreen定义为主加载:
<activity android:screenOrientation="portrait" android:name=".SplashScreen" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity>
