title: relative layout margin not working?
body: <p>I am trying to set the margin to the relative layout, but its not working, wondering why?<br>
  here is the layout containing listview, </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"
      android:paddingTop="10dip"&gt;
  
  &lt;ListView
      android:id="@android:id/list"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:scrollbarStyle="outsideOverlay"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>and here is the view i want to inflate in that list view, </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="fill_parent"
      android:layout_height="wrap_content"
      android:layout_marginRight="10dp"
      android:layout_marginLeft="10dp"
      android:background="@drawable/subcat_list_selector" &gt;
  
  &lt;ImageView
      android:id="@+id/categoryIcon"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" /&gt;
  &lt;!-- Rightend Arrow --&gt;
  
  &lt;ImageView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentRight="true"
      android:layout_centerVertical="true"
      android:layout_marginRight="5dp"
      android:src="@drawable/right_nav" /&gt;
  
  &lt;TextView
      android:id="@+id/categoryTitle"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_centerVertical="true"
      android:layout_marginLeft="10dp"
      android:layout_toRightOf="@+id/categoryIcon"
      android:gravity="center_vertical"
      android:text="@string/my_string"
      android:textColor="#999999"
      android:textSize="15sp" /&gt;
  </code></pre>
  
  <p></p>