Android开发基础之创建启动界面Splash Screen的方法

2019-12-10 19:57:57刘景俊
  • return true;  } 
  • 然后在AndroidMainfest.xml中修改代码如下:

     

     
    1. <?xml version="1.0" encoding="utf-8"?>  <manifest xmlns:android="http://www.easck.com/apk/res/android" 
    2. package="com.ctoof.android"  android:versionCode="1" 
    3. android:versionName="1.0">  <application android:icon="@drawable/icon" android:label="@string/app_name"> 
    4. <activity android:name=".SplashScreen"  android:label="@string/app_name"> 
    5. <intent-filter>  <action android:name="android.intent.action.MAIN" /> 
    6. <category android:name="android.intent.category.LAUNCHER" />  </intent-filter> 
    7. </activity>  <activity android:name=".MyApp"> 
    8. <intent-filter>  <action android:name=" com.ctoof.android. MySample.MyApp " /> 
    9. <category android:name="android.intent.category.DEFAULT" />  </intent-filter> 
    10. </activity>  </application> 
    11. <uses-sdk android:minSdkVersion="4" />  </manifest>