Android 对齐2个可展开列表视图

Android 对齐2个可展开列表视图,android,xml,Android,Xml,我在对齐2个可展开列表视图和一个浮动操作按钮时遇到问题。我应该在同一行的list1,fab,list2上,但是我最终在list1下面有了list2。我不明白我做错了什么。有什么想法吗 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas

我在对齐2个可展开列表视图和一个浮动操作按钮时遇到问题。我应该在同一行的list1,fab,list2上,但是我最终在list1下面有了list2。我不明白我做错了什么。有什么想法吗

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:weightSum="2"
    android:layout_width="match_parent"
    android:layout_height="match_parent">


    <AutoCompleteTextView
        android:layout_width="fill_parent"
        android:layout_height="100dp"
        android:hint="     Write your text..."
        android:id="@+id/editText"
        android:background="#71ABFF"
        android:layout_marginTop="110dp"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true" />

    <TextView
        android:layout_width="fill_parent"
        android:layout_height="100dp"
        android:layout_marginTop="10dp"
        android:id="@+id/editText2"
        android:background="#71ABFF"
        android:layout_below="@+id/editText"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true" />

    <com.melnykov.fab.FloatingActionButton
        android:id="@+id/fab"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/trans"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="20dp"></com.melnykov.fab.FloatingActionButton>


    <ExpandableListView
        android:id="@+id/list"
        android:layout_height="match_parent"
        android:layout_width="100dp"
        android:layout_marginLeft="0dp"
        android:groupIndicator="@null"
        android:layout_weight="1"
        android:layout_marginTop="20dp"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"/>

    <ExpandableListView
        android:id="@+id/list2"
        android:layout_height="match_parent"
        android:layout_width="100dp"
        android:groupIndicator="@null"
        android:layout_weight="1"
        android:layout_marginTop="20dp"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="true" />

</RelativeLayout>
实际设计


请附上实际和预期设计的参考图片。请至少在ExpandableListView的父级发布完整的布局代码,并附上一张图片,说明您想要实现的目标。您需要android:layout_toLeftOf,下面的android:layout_。。定义哪个项目是右/左/下/哪个项目是其他项目