我试图为Android开发一个应用程序,但我遇到了一些问题。我有一个主要的RelativeLayout,它有一个很好的背景图像。当我通过AVD(over eclipse)运行它时,它工作并且看起来很好,但是当我尝试在Galaxy Nexus手机上测试它时,背景是纯黑的。我该如何解决这个问题?背景在运行时绘制黑色
主要布局
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/GPRelativeLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/gempouchbg"
android:orientation="vertical">
它与一些头布局合并。
<include
android:id="@+id/headerMerge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginTop="45dp"
layout="@layout/header" />
任何人都可以帮我吗? :/
背景图像根本没有显示,而是我得到一个黑色的背景。那就是问题所在。 – Diabolic 2012-04-15 09:33:13