作为一名android开发人员,我非常新,我目前了解RelativeLayout,但面临的问题是Textview overLapping在图像上。在这里,我向你提供图像,我想要什么,我得到什么,还有我已经做了很多的代码。所以请帮助我。相对布局覆盖在RelativeLayout组件中声明的组件
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<ImageView
android:id="@+id/firstImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:src="@drawable/splash1" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignTop="@id/firstImage"
android:layout_alignBaseline="@id/firstImage"
android:text="@string/menu" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:src="@drawable/splash1" />
</RelativeLayout>
这是我想要的布局图像。
请帮助我。
在此先感谢..
我会使用LinearLayout。 http://developer.android.com/resources/tutorials/views/hello-linearlayout.html – Sparky 2012-02-15 09:26:56