안녕하세요!
해상도별 intro.png를 만들고
res/drawable-800x480/intro.png
res/drawable-854x480/intro.png
or
res/drawable-port-800x480/intro.png
res/drawable-port-854x480/intro.png
or
res/drawable-port-mdpi-800x480/intro.png
res/drawable-port-mdpi-854x480/intro.png
이렇게 하고
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center">
<FrameLayout
android:id="@+id/fl_image_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentTop="true">
<ImageView android:id="@+id/iv_intro_img"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/intro"/>
</FrameLayout>
</RelativeLayout>
실행을 하면
E/AndroidRuntime(11577): Caused by: android.view.InflateException: Binary XML fi
le line #14: Error inflating class android.widget.ImageView
E/AndroidRuntime(11577): at android.view.LayoutInflater.createView(Layout
Inflater.java:518)
E/AndroidRuntime(11577): at com.android.internal.policy.impl.PhoneLayoutI
nflater.onCreateView(PhoneLayoutInflater.java:56)
E/AndroidRuntime(11577): at android.view.LayoutInflater.createViewFromTag
(LayoutInflater.java:568)
E/AndroidRuntime(11577): at android.view.LayoutInflater.rInflate(LayoutIn
flater.java:623)
E/AndroidRuntime(11577): at android.view.LayoutInflater.rInflate(LayoutIn
flater.java:626)
E/AndroidRuntime(11577): at android.view.LayoutInflater.inflate(LayoutInf
later.java:408)
E/AndroidRuntime(11577): at android.view.LayoutInflater.inflate(LayoutInf
later.java:320)
E/AndroidRuntime(11577): at android.view.LayoutInflater.inflate(LayoutInf
later.java:276)
E/AndroidRuntime(11577): at com.android.internal.policy.impl.PhoneWindow.
setContentView(PhoneWindow.java:207)
E/AndroidRuntime(11577): at android.app.Activity.setContentView(Activity.
java:1657)
E/AndroidRuntime(11577): at com.cs.diotek.activity.IntroActivity.onCreate
(IntroActivity.java:95)
E/AndroidRuntime(11577): at android.app.Instrumentation.callActivityOnCre
ate(Instrumentation.java:1047)
E/AndroidRuntime(11577): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:1611)
E/AndroidRuntime(11577): ... 11 more
E/AndroidRuntime(11577): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime(11577): at java.lang.reflect.Constructor.constructNative
(Native Method)
E/AndroidRuntime(11577): at java.lang.reflect.Constructor.newInstance(Con
structor.java:415)
E/AndroidRuntime(11577): at android.view.LayoutInflater.createView(Layout
Inflater.java:505)
E/AndroidRuntime(11577): ... 23 more
E/AndroidRuntime(11577): Caused by: android.content.res.Resources$NotFoundExcept
ion: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f020004 a
=-1 r=0x7f020004}
E/AndroidRuntime(11577): at android.content.res.Resources.loadDrawable(Re
sources.java:1681)
E/AndroidRuntime(11577): at android.content.res.TypedArray.getDrawable(Ty
pedArray.java:601)
E/AndroidRuntime(11577): at android.view.View.<init>(View.java:1951)
E/AndroidRuntime(11577): at android.widget.ImageView.<init>(ImageView.jav
a:112)
E/AndroidRuntime(11577): at android.widget.ImageView.<init>(ImageView.jav
a:108)
E/AndroidRuntime(11577): ... 26 more
W/ActivityManager( 96): Force finishing activity com.cs.diotek/.activity.Int
roActivity
W/ActivityManager( 96): Activity pause timeout for HistoryRecord{408e1538 com.
cs.diotek/.activity.IntroActivity}
W/ResourceType( 96): Skipping entry 0x7f040006 in package table 0 because it i
s not complex!
W/ResourceType( 96): Skipping entry 0x7f040005 in package table 0 because it i
s not complex!
D/dalvikvm(11455): GC_EXPLICIT freed 8K, 54% free 2525K/5379K, external 1625K/21
37K, paused 53ms
W/ActivityManager( 96): Activity destroy timeout for HistoryRecord{408e1538 co
m.cs.diotek/.activity.IntroActivity}
특별히 빼먹은게 있나요 ?




기본 drawable 폴더에 intro.png가 없어서 그럴수도 있을거같네요~