android xml中的一个元素高于第二个元素

android xml中的一个元素高于第二个元素,android,android-layout,Android,Android Layout,我的布局有一个小问题。 这是代码: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <RelativeLayo

我的布局有一个小问题。 这是代码:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" 
   >

    <RelativeLayout
        android:id="@+id/popuplayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" 

        >

        <Button
            android:id="@+id/login_choose_language_txt"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/popup_andr"
            android:text="@string/login_choose_language_txt" 
            />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/login_choose_language_txt"
            android:layout_centerHorizontal="true"
            android:orientation="vertical" 
            android:background="@drawable/background_gray_9patch"
            android:layout_marginTop="-15dp"
            >


        <ImageView
            android:id="@+id/login_language_1"
            android:layout_width="50dp"
            android:layout_height="30dp"
            android:src="@drawable/pl" 
            android:layout_marginTop="10dp"
            android:layout_gravity="center_horizontal"/>
        <ImageView
            android:id="@+id/login_language_2"
            android:layout_width="50dp"
            android:layout_height="30dp"
            android:layout_marginTop="10dp"
            android:src="@drawable/pl"
            android:layout_gravity="center_horizontal" />
         <ImageView
            android:id="@+id/login_language_3"
            android:layout_width="50dp"
            android:layout_height="30dp"
            android:layout_marginTop="10dp"
            android:src="@drawable/pl"
            android:layout_gravity="center_horizontal" />
        <ImageView
            android:id="@+id/login_language_4"
            android:layout_width="50dp"
            android:layout_height="30dp"
            android:layout_marginTop="10dp"
            android:src="@drawable/pl"
            android:layout_gravity="center_horizontal" />
        </LinearLayout>

    </RelativeLayout>

</LinearLayout>


问题是因为包含ImageView的布局覆盖了我按钮的一部分。我知道我有marginTop,因为我需要把这个布局的顶部放在这个按钮下,但我想从这个按钮的顶部隐藏这个部分。我如何操作按钮是在布局上方?

将android:layout\u Down=“@+id/login\u choose\u language\u txt”添加到按钮标签上。

将android:layout\u Down=“@+id/login\u choose\u language\u txt”添加到相对布局中。照Numair说的做,根线性布局就没用了。