title: Android Error :You must supply layout_width attribute
body: <p>Sorry because my title similar with many others on <code>StackOverFlow</code> but none of those solution meet with my problem.</p>
  
  <p>I'm designing a layout use <code>Relative Layout</code>. After design in code view, when I change to graphic view, Eclipse notices :</p>
  
  <blockquote>
    <p>You must supply a layout_width attribute.</p>
    
    <p>You must supply a layout_height attribute.</p>
  </blockquote>
  
  <p>. When I run this program, will notice error in LogCat </p>
  
  <blockquote>
    <p>Caused by: java.lang.RuntimeException: Binary XML file line #2: You
    must supply a layout_width attribute.</p>
  </blockquote>
  
  <p>Here is my XML file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout
      xmlns:android="http://schemas.android.com"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
  
      &lt;TextView
          android:id="@+id/contact_name"
          android:text="Sam"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"
          android:layout_alignParentLeft="true"
          android:layout_marginLeft="20dp"
          android:layout_marginTop="20dp"
          android:textSize="20dp"/&gt;
  
      &lt;TextView
          android:id="@+id/contact_phone"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textSize="10dp"
          android:text="39256493"
          android:layout_below="@+id/contact_name"
          android:layout_alignLeft="@+id/contact_name"
          android:layout_marginTop="5dp"/&gt;        
  
  &lt;/RelativeLayout&gt;
  </code></pre>