我犯了一個閃屏與此YouTube視頻turtorial這裏〜>http://www.youtube.com/watch?v=IHg_0HJ5iQoAndroid的閃屏碎
我救了我的文件,並確保他們現在在那裏當我把它發送到我的設備開機畫面顯示不出來..我不知道爲什麼。
我的繼承人activity_main.xml中的代碼
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:background="@drawable/back_background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
</RelativeLayout>
這裏是我的splash.xml代碼
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@drawable/splash_background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
</LinearLayout>
我的繼承人馬納費斯特文件
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.idoser"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.idoser.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
你可以發佈你的清單文件嗎? – MCeley 2013-03-12 22:53:33
即時運行android 4.2.1和ok – 2013-03-12 22:54:41
不管你運行的是哪個版本,你可以發佈你的清單文件嗎?我希望看到您的活動聲明,以確保您首先啓動適當的活動。 – MCeley 2013-03-12 22:55:36