我已经坚持了一段时间,所以我想我会问。以前我有一个 ImageView,下面有按钮。但我想把按钮放在上面,把 ImageView 放在按钮下面,但不知道该怎么做。这是我目前拥有的 XML。有谁知道出了什么问题?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/RelativeLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<Button
android:id="@+id/Button_ILLNESS"
android:layout_width="wrap_content"
android:layout_height="@dimen/menu_button_height"
android:layout_alignTop="@+id/Button_ILLNESS"
android:text="@string/illness"
android:textSize="@dimen/menu_button_text_size" >
</Button>
<Button
android:id="@+id/Button_SYMPTOM"
android:layout_width="wrap_content"
android:layout_height="@dimen/menu_button_height"
android:layout_toRightOf="@+id/Button_ILLNESS"
android:text="@string/symptom"
android:textSize="@dimen/menu_button_text_size" >
</Button>
<Button
android:id="@+id/Button_REMEDY"
android:layout_width="wrap_content"
android:layout_height="@dimen/menu_button_height"
android:layout_toRightOf="@+id/Button_SYMPTOM"
android:text="@string/remedy"
android:textSize="@dimen/menu_button_text_size" >
</Button>
<Button
android:id="@+id/Button_HELP"
android:layout_width="wrap_content"
android:layout_height="@dimen/menu_button_height"
android:layout_toRightOf="@+id/Button_REMEDY"
android:text="@string/help"
android:textSize="@dimen/menu_button_text_size" >
</Button>
<Button
android:id="@+id/Button_INFO"
android:layout_width="wrap_content"
android:layout_height="@dimen/menu_button_height"
android:layout_toRightOf="@+id/Button_HELP"
android:text="@string/info"
android:textSize="@dimen/menu_button_text_size" >
</Button>
</RelativeLayout>
<RelativeLayout
android:id="@+id/RelativeLayout02"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</RelativeLayout>
<ImageView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ImageView_MenuHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:src="@drawable/splash_android_650x480" >
</ImageView>
</LinearLayout>