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

    <LinearLayout
        android:id="@+id/perm1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:layout_toLeftOf="@+id/perm2"
        android:layout_toRightOf="@+id/perm1" >

          <ListView
              android:id="@+id/doc_list"
              android:layout_width="match_parent"
              android:layout_height="842dp" >

        </ListView>
    </LinearLayout>

    <LinearLayout
        android:id="@+id/perm2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:layout_alignParentTop="true" >

        <ExpandableListView
            android:id="@+id/perm_list"
            android:layout_width="333dp"
            android:layout_height="match_parent" >
        </ExpandableListView>

    </LinearLayout>

</RelativeLayout>