title: How to add two listviews in a fragment in android layout?
body: <p>i'm trying display two listviews in a fragment. but i'm getting problems in xml file itself. I am using sherlock fragment.
  Also one list should be displayed on 2/3 space of the screen and another list on 1/3 of the screen space. please can u help? Any help would be appreciated. Thanks in advance.</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="#DEF7C6"
      android:orientation="vertical" &gt;
  
      &lt;RelativeLayout
      android:id="@+id/layout1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" &gt;
  
      &lt;ImageView
          android:layout_width="60dp"
          android:layout_height="35dp"
          android:paddingLeft="0dp"
          android:src="@drawable/search" /&gt;
  
      &lt;EditText
          android:id="@+id/EditText01"
          android:layout_width="280dp"
          android:layout_height="wrap_content"
          android:hint="Search"
          android:paddingLeft="50dp"
          android:textColor="#000000" &gt;
      &lt;/EditText&gt;
  
      &lt;ListView
          android:id="@android:id/list"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_below="@+id/EditText01"
          android:drawSelectorOnTop="false"
          android:listSelector="@android:color/darker_gray" &gt;
      &lt;/ListView&gt;
  
      &lt;RelativeLayout
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_weight="2"
          android:background="#CFCACC" &gt;
      &lt;/RelativeLayout&gt;
      &lt;/RelativeLayout&gt;
  
     &lt;RelativeLayout
      android:id="@+id/layout2"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_below="@id/layout1"
      android:layout_weight="2" &gt;
  
      &lt;FrameLayout
          android:id="@+id/fragment_container"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:textColor="#000000" /&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;Button
      android:id="@+id/addbutton"
      android:layout_width="42dp"
      android:layout_height="41dp"
      android:layout_above="@+id/list"
      android:layout_alignParentRight="true"
      android:background="@drawable/buttonadd" /&gt;
  
  
      &lt;/RelativeLayout&gt;
  </code></pre>